in reply to Re^2: Need correct command for the plackup and Thrall SSL enabling process.
in thread Need correct command for the plackup and Thrall SSL enabling process.

Looking at the source of HTTP::Server::PSGI again (have you done so yet?) I can see that expects arguments named ssl_key_file and ssl_cert_file (https://metacpan.org/release/Plack/source/lib/HTTP/Server/PSGI.pm#L53). You seem to be passing the arguments with dashes instead of underscores.

Try this:

plackup -p 5001 -- --ssl --ssl_key_file=self-signedkey.key --ssl_cert_ +file=self-signed.crt --host localhost app.psgi

Hope this helps!


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^4: Need correct command for the plackup and Thrall SSL enabling process.
by chandantul (Scribe) on May 09, 2021 at 18:43 UTC

    Thanks everyone for your patient and i was able to fix the issue by making ssl to true . Please check below command.

    plackup -p 5001 --ssl=1 --ssl_key_file=self-signedkey.key --ssl_cert_file=self-signed.crt --host localhost app.psgi

      Well done!


      The way forward always starts with a minimal test.
Re^4: Need correct command for the plackup and Thrall SSL enabling process.
by chandantul (Scribe) on May 08, 2021 at 23:48 UTC

    Yes, Thanks for your help. I have found this and i was trying with "_" instead of "-" in SSL parameters but i did not update --host which is required arguments here. Thanks for identifying the issue but i am getting Unsupported TLS error now.

    C:\Users\Documents\Perl\webapp\bin>plackup -p 5001 --ssl --ssl_key_fil +e=self-signedkey.key --ssl_cert_file=self-signed.crt --host 127.0.0.1 + app.psgi [webapp:20468] core @2021-05-08 19:38:07> Built config from files: C:\ +Users\Documents\Perl\webapp\config.yml C:\Users\Documents\Perl\webapp +\environments\development.yml in (eval 272) l. 910 HTTP::Server::PSGI: Accepting connections at https://127.0.0.1:5001/

    Please check below error that i am getting while trying to access the site. I am trying to resolve this but if you have faced this issue let me know the solution if possible. I have tried in IE and Chrome

    Can’t connect securely to this page This might be because the site uses outdated or unsafe TLS security settings. If this keeps happening, try contacting the website’s owner. Try this: •Go back to the last page