in reply to Re^12: Unable to enable SSL on Dancer2 application in my windows platform.
in thread Unable to enable SSL on Dancer2 application in my windows platform.
Hello Team, I have written a small program to verify my self-signed certificate. Please check below command that we are getting error.
use IO::Socket::SSL qw(debug3); use Net::SSLeay; # simple server my $server = IO::Socket::SSL->new( # where to listen LocalAddr => '127.0.0.1', LocalPort => 5000, Listen => 10, # which certificate to offer # with SNI support there can be different certificates per hostnam +e #verify_mode => Net::SSLeay->VERIFY_PEER(), SSL_cert_file => 'C:/Users/Documents/Private-Public-key-cert/Cert. +crt', SSL_key_file => 'C:/Users/Documents/Private-Public-key-cert/Privat +e0504.key', ca_file => 'C:/Users/Documents/Private-Public-key-cert/cacerts', ) or die "failed to listen: $!"; # accept client my $client = $server->accept or die "failed to accept or ssl handshake: $!,$SSL_ERROR";
Output available
DEBUG: .../IO/Socket/SSL.pm:3010: new ctx 43981520 DEBUG: .../IO/Socket/SSL.pm:1031: no socket yet
Can you please let me know this is expected?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^14: Unable to enable SSL on Dancer2 application in my windows platform.
by 1nickt (Canon) on May 05, 2021 at 23:34 UTC | |
by chandantul (Scribe) on May 06, 2021 at 01:58 UTC | |
by afoken (Chancellor) on May 06, 2021 at 11:12 UTC | |
by chandantul (Scribe) on May 06, 2021 at 13:08 UTC |