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

The easiest way is to use the cpan or cpanm tool:

cpan > look IO::Socket::SSL

or

cpanm --look IO::Socket::SSL

But have you made sure that IO::Socket::SSL is not already installed on your machine? If the following oneliner does not output an error, you already have the module:

perl -MIO::Socket::SSL -e1

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

    Hello , I am getting below and its looks like the IO::Socket::SSL is already present.

    C:\Users\Documents\Perl\Comp-Perl\webapp\bin>cpanm --look IO::Socket:: +SSL --> Working on IO::Socket::SSL Fetching http://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.070 +.tar.gz ... OK Entering C:/Users/.cpanm/work/1620123254.45360/IO-Socket-SSL-2.070 wit +h C:\WINDOWS\system32\cmd.exe Microsoft Windows [Version 10.0.18363.1443] (c) 2019 Microsoft Corporation. All rights reserved. C:\Users\.cpanm\work\1620123254.45360\IO-Socket-SSL-2.070>

    It does not look the IO::Socket::SSL is working since i am getting below. Please help in any advices. I am using Strawberry Perl

    C:\Users\Documents\Perl\Synchrony-Perl\webapp\bin>plackup --ssl --ssl- +key-file=C:\Users\Documents\Private-Public\privateKey.key --ssl-cert- +file=C:\Users\Documents\Private-Public\certificate.crt app.psgi failed to listen to port 5000: at C:/Strawberry/perl/site/lib/HTTP/Se +rver/PSGI.pm line 103.

      You asked cpanm to download, unpack and open a shell in the modules directory, this does not mean it is installed. cpanm -vvv .

      Update: You'd waste less time if you looked up the commands you are using (e.g. look), rather than guess at what they're doing.

      I am getting below installation hang issue on my Windows system in Strwberry perl

      # listen at 127.0.0.1:65056 # connect to 0: success reuse=0 version=TLSv1_3 t/session_ticket.t ................ 1/6 # connect to 0: success reuse= +1 version=TLSv1_3 # connect to 1: success reuse=1 version=TLSv1_3 # connect to 1: success reuse=0 version=TLSv1_3 # connect to 0: success reuse=0 version=TLSv1_3 # connect to 0: success reuse=1 version=TLSv1_3 t/session_ticket.t ................ ok t/sessions.t ...................... ok t/set_curves.t .................... Failed 1/6 subtests t/signal-readline.t ............... skipped: signals not relevant on t +his platform t/sni.t ........................... ok t/sni_verify.t .................... 1/17 Terminating on signal SIGINT( +2)

      How can i bypass this test?

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