Leser: 13
QuoteDEBUG: .../IO/Socket/SSL.pm:2602: new ctx 39687152
DEBUG: .../IO/Socket/SSL.pm:542: socket not yet connected
DEBUG: .../IO/Socket/SSL.pm:544: socket connected
DEBUG: .../IO/Socket/SSL.pm:566: ssl handshake not started
DEBUG: .../IO/Socket/SSL.pm:599: using SNI with hostname meine.domain.net
DEBUG: .../IO/Socket/SSL.pm:634: request OCSP stapling
DEBUG: .../IO/Socket/SSL.pm:653: set socket to non-blocking to enforce timeout=180
DEBUG: .../IO/Socket/SSL.pm:667: Net::SSLeay::connect -> -1
DEBUG: .../IO/Socket/SSL.pm:677: ssl handshake in progress
DEBUG: .../IO/Socket/SSL.pm:687: waiting for fd to become ready: SSL wants a read first
DEBUG: .../IO/Socket/SSL.pm:707: socket ready, retrying connect
DEBUG: .../IO/Socket/SSL.pm:2505: did not get stapled OCSP response
DEBUG: .../IO/Socket/SSL.pm:2458: ok=0 cert=44929232
DEBUG: .../IO/Socket/SSL.pm:667: Net::SSLeay::connect -> -1
DEBUG: .../IO/Socket/SSL.pm:1791: SSL connect attempt failed
DEBUG: .../IO/Socket/SSL.pm:1796: SSL connect attempt failed error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
DEBUG: .../IO/Socket/SSL.pm:673: fatal SSL error: SSL connect attempt failed error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
DEBUG: .../IO/Socket/SSL.pm:1780: IO::Socket::IP configuration failed
DEBUG: .../IO/Socket/SSL.pm:2635: free ctx 39687152 open=39687152
DEBUG: .../IO/Socket/SSL.pm:2640: free ctx 39687152 callback
DEBUG: .../IO/Socket/SSL.pm:2647: OK free ctx 39687152
1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/perl use strict; use warnings; use 5.024; use IO::Socket::SSL qw(debug4); IO::Socket::SSL->new( PeerAddr=>"gwendragon.de", PeerPort=>443, Proto=>"TCP", SSL_hostname => 'gwendragon.de' ) or die $!;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
T:\>perl a.pl
DEBUG: .../IO/Socket/SSL.pm:2823: new ctx 44833392
DEBUG: .../IO/Socket/SSL.pm:675: socket not yet connected
DEBUG: .../IO/Socket/SSL.pm:677: socket connected
DEBUG: .../IO/Socket/SSL.pm:700: ssl handshake not started
DEBUG: .../IO/Socket/SSL.pm:733: using SNI with hostname gwendragon.de
DEBUG: .../IO/Socket/SSL.pm:768: request OCSP stapling
DEBUG: .../IO/Socket/SSL.pm:802: call Net::SSLeay::connect
DEBUG: .../IO/Socket/SSL.pm:2724: did not get stapled OCSP response
DEBUG: .../IO/Socket/SSL.pm:2677: ok=1 [2] /O=Digital Signature Trust Co./CN=DST Root CA X3/O=Digital Signature Trust Co./CN=DST Root CA X3
DEBUG: .../IO/Socket/SSL.pm:2677: ok=1 [1] /O=Digital Signature Trust Co./CN=DST Root CA X3/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
DEBUG: .../IO/Socket/SSL.pm:2677: ok=1 [0] /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3/CN=gwendragon.de
DEBUG: .../IO/Socket/SSL.pm:1741: scheme=default cert=58652336
DEBUG: .../IO/Socket/SSL.pm:1751: identity=gwendragon.de cn=gwendragon.de alt=2 gwendragon.de 2 www.gwendragon.de
DEBUG: .../IO/Socket/SSL.pm:805: done Net::SSLeay::connect -> 1
DEBUG: .../IO/Socket/SSL.pm:860: ssl handshake done
DEBUG: .../IO/Socket/SSL.pm:2845: free ctx 44833392 open=44833392
DEBUG: .../IO/Socket/SSL.pm:2849: free ctx 44833392 callback
DEBUG: .../IO/Socket/SSL.pm:2856: OK free ctx 44833392
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
PERL-5.20 T:\>perl a.pl
DEBUG: .../IO/Socket/SSL.pm:2823: new ctx 49435656
DEBUG: .../IO/Socket/SSL.pm:675: socket not yet connected
DEBUG: .../IO/Socket/SSL.pm:677: socket connected
DEBUG: .../IO/Socket/SSL.pm:700: ssl handshake not started
DEBUG: .../IO/Socket/SSL.pm:733: using SNI with hostname gwendragon.de
DEBUG: .../IO/Socket/SSL.pm:768: request OCSP stapling
DEBUG: .../IO/Socket/SSL.pm:802: call Net::SSLeay::connect
DEBUG: .../IO/Socket/SSL.pm:2724: did not get stapled OCSP response
DEBUG: .../IO/Socket/SSL.pm:2677: ok=1 [2] /O=Digital Signature Trust Co./CN=DST Root CA X3/O=Digital Signature Trust Co./CN=DST Root CA X3
DEBUG: .../IO/Socket/SSL.pm:2677: ok=1 [1] /O=Digital Signature Trust Co./CN=DST Root CA X3/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
DEBUG: .../IO/Socket/SSL.pm:2677: ok=1 [0] /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3/CN=gwendragon.de
DEBUG: .../IO/Socket/SSL.pm:1741: scheme=default cert=57711216
DEBUG: .../IO/Socket/SSL.pm:1751: identity=gwendragon.de cn=gwendragon.de alt=2 gwendragon.de 2 www.gwendragon.de
DEBUG: .../IO/Socket/SSL.pm:805: done Net::SSLeay::connect -> 1
DEBUG: .../IO/Socket/SSL.pm:860: ssl handshake done
DEBUG: .../IO/Socket/SSL.pm:2845: free ctx 49435656 open=49435656
DEBUG: .../IO/Socket/SSL.pm:2849: free ctx 49435656 callback
DEBUG: .../IO/Socket/SSL.pm:2856: OK free ctx 49435656
2018-05-28T07:36:47 GwenDragonoder benutzt du das nicht hier?
Ich weiß ja nicht was du gerade machst.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
use strict; use warnings; use IO::Socket::SSL; $IO::Socket::SSL::DEBUG = 3; my $host = 'letsencrypt.org'; my $client = IO::Socket::SSL->new( # where to connect PeerHost => $host, PeerPort => "https", # -------- test this -------- SSL_ocsp_mode => SSL_OCSP_NO_STAPLE, # certificate verification - VERIFY_PEER is default SSL_verify_mode => SSL_VERIFY_PEER, ) or die "failed connect or ssl handshake: $!,$SSL_ERROR"; # send and receive over SSL connection print $client "GET / HTTP/1.0\r\n"; print $client "Host: $host\r\n\r\n"; print <$client>;
2018-05-28T08:07:26 hajOK, laut Anleitung schaltet man das OCSP mittels SSLUseStapling on ein. Habe ich drin und Apache startet (inzwischen) fehlerfrei.IO::Socket::SSL verwendet dazu per Voreinstellung OCSP Stapling, was man also entweder dem Webserver beibiegen oder dem Perl-Program abgewöhnen muss.
Quote[Mon May 28 12:39:06 2018] [error] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=meine.domain.net / issuer: CN=Let's Encrypt Authority X3,O=Let's Encrypt,C=US / serial: XXXX3ADE244E52BXXXXFF8D9D635C709XXXX / notbefore: May 27 15:36:13 2018 GMT / notafter: Aug 25 15:36:13 2018 GMT]
[Mon May 28 12:39:06 2018] [error] AH02604: Unable to configure certificate meine.domain.net:443:0 for stapling
2018-05-29T07:32:52 GwenDragonIch hatte dich übrigens im Thread über Cyrcpt::LE auf die Zertifikatskette angesprochen.