Portál AbcLinuxu, 17. dubna 2024 00:14


Dotaz: problem openssl s_client -connect

12.7.2005 13:04 Vachy
problem openssl s_client -connect
Přečteno: 335×
Odpovědět | Admin

Rad bych poprosil o radu.

V distribucu SuSe 9.2 se pokousim rozbehat web server https. Po konfiguraci web server nebezi. Prikaz:openssl s_client -connect localhost:443 -state -debug vypise nasledujici

CONNECTED(00000003)

SSL_connect:before/connect initialization

write to 080ACBF8 [080AD300] (142 bytes => 142 (0x8E))

0000 - 80 8c 01 03 01 00 63 00-00 00 20 00 00 39 00 00 ......c... ..9..

0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0 8..5............

0020 - 00 00 33 00 00 32 00 00-2f 03 00 80 00 00 66 00 ..3..2../.....f.

0030 - 00 05 00 00 04 01 00 80-08 00 80 00 00 63 00 00 .............c..

0040 - 62 00 00 61 00 00 15 00-00 12 00 00 09 06 00 40 b..a...........@

0050 - 00 00 65 00 00 64 00 00-60 00 00 14 00 00 11 00 ..e..d..`.......

0060 - 00 08 00 00 06 04 00 80-00 00 03 02 00 80 22 44 .............."D

0070 - 02 5f 74 dd 7c 43 a0 7a-86 01 65 f9 8f 26 3c 71 ._t.|C.z..e..&<

0080 - 83 5e b1 ae 55 29 ba 48-6d 3b a5 65 12 a3 .^..U).Hm;.e..

SSL_connect:SSLv2/v3 write client hello A

read from 080ACBF8 [080B2860] (7 bytes => 7 (0x7))

0000 - 3c 3f 78 6d 6c 20 76 <?xml v

SSL_connect:error in SSLv2/v3 read server hello A

27694:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:475:


Nevite kde by mohla byt chyba?


Moc dekuji za radu



Prikladam konfiguraci vhost-ssl.template

<VirtualHost _default_:443>


# General setup for the virtual host

DocumentRoot "/srv/www/htdocs"

#ServerName www.example.com:443

#ServerAdmin webmaster@example.com

ErrorLog /var/log/apache2/error_log

TransferLog /var/log/apache2/access_log


# SSL Engine Switch:

# Enable/Disable SSL for this virtual host.

SSLEngine on


# SSL Cipher Suite:

# List the ciphers that the client is permitted to negotiate.

# See the mod_ssl documentation for a complete list.

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL


SSLCertificateFile /etc/apache2/ssl.crt/muj.crt

SSLCertificateKeyFile /etc/apache2/ssl.key/muj.key

<Files ~ "\.(cgi|shtml|phtml|php3?)$">

SSLOptions +StdEnvVars

</Files>

<Directory "/srv/www/cgi-bin">

SSLOptions +StdEnvVars

</Directory>

SetEnvIf User-Agent ".*MSIE.*" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

CustomLog /var/log/apache2/ssl_request_log ssl_combined


</VirtualHost>


</IfDefine>

</IfDefine>


a konfiguraci ssl-global.conf:

<IfDefine SSL>

<IfDefine !NOSSL>

<IfModule mod_ssl.c>

AddType application/x-x509-ca-cert .crt

AddType application/x-pkcs7-crl .crl

SSLPassPhraseDialog builtin

SSLSessionCache shmcb:/var/lib/apache2/ssl_scache

SSLSessionCacheTimeout 600

SSLMutex sem

SSLRandomSeed startup builtin

SSLRandomSeed connect builtin

</IfModule>

</IfDefine>

</IfDefine>


vystup apache2 - error.log:

[Tue Jul 12 12:05:22 2005] [error] [client adresa_klienta] Invalid method in request \x80\x8c\x01\x03\x01


Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

16.7.2005 17:44 User682 | skóre: 38 | blog: aqarium | Praha
Rozbalit Rozbalit vše Re: problem openssl s_client -connect
Odpovědět | | Sbalit | Link | Blokovat | Admin
patrne vam chybi certifikat CA. tipuju, ze mate vlastni CA a sebou podepsane certifikaty.

ze by SSLCACertificateFile .....?

bye gf

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.