in reply to Re^8: Unable to enable SSL on Dancer2 application in my windows platform.
in thread Unable to enable SSL on Dancer2 application in my windows platform.

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^10: Unable to enable SSL on Dancer2 application in my windows platform.
by huck (Prior) on May 04, 2021 at 20:04 UTC

    try this

    plackup -p 55001 --ssl --ssl-key-file=C:\Users\Documents\Private-Publi +c\privateKey.key --ssl-cert-file=C:\Users\Documents\Private-Public\ce +rtificate.crt app.psg

      I was getting the same error

      failed to listen to port 55001:  at C:/Strawberry/perl/site/lib/HTTP/Server/PSGI.pm line 103.

      Can we have a command that verify the certificate? My certificate is self signed certificate. How can i verify the same?

      Dear Smart Monks, Are there anyone who can let me know to check the exact error with SSL validation here? How i can check the same?

      C:\Users\Documents\Perl\webapp\bin>plackup --ssl --ssl-key-file=C:\Use +rs\Documents\Private-Public-key-cert\Private0504.key --ssl-cert-file= +C:\Users\Documents\Private-Public-key-cert\Cert.crt --ssl_fingerprint +=B1:51:CE:74:BC:55:0F:F4:FF:17.......... app.psgi [webapp:35672] core @2021-05-05 00:19:35> Built config from files: C:\ +Users\Documents\Perl\Synchrony-Perl\webapp\config.yml C:\Users\Docume +nts\Perl\Synchrony-Perl\webapp\environments\development.yml in (eval +272) l. 910 failed to listen to port 5000: at C:/Strawberry/perl/site/lib/HTTP/Se +rver/PSGI.pm line 103.

        The doc for IO::Socket::SSL suggests setting the environment variable $IO::Socket::SSL::DEBUG to 1, 2 or 3.

        Hope this helps!


        The way forward always starts with a minimal test.