On Mon, Dec 24, 2001 at 12:35:36PM -0800, Patrick Li wrote:
> Hi,
> 
> I created the SSL context using SSLv23_method() and specified 4 SSLV2
> ciphers.  When I used this SSL context to talk to an apache server with
> mod_ssl extension, it failed.
> 
> Apache reported the following errors:
> 
> [Mon Dec 24 12:31:12 2001] [error] mod_ssl: SSL handshake failed (server
> localhost:8443, client 10.160.0.12) (OpenSSL library error follows)
> [Mon Dec 24 12:31:12 2001] [error] OpenSSL: error:1408A0B6:SSL
> routines:SSL3_GET_CLIENT_HELLO:no ciphers passed

Hmm...

> ssldump gave me the following traces:
> 
> New TCP connection #6: oscar(35715) <-> bert(8443)
> 6 1  0.0037 (0.0037)  C>S SSLv2 compatible client hello
>   Version 3.1
>   cipher suites
>   SSL2_CK_3DES
>   SSL2_CK_IDEA
>   SSL2_CK_RC2
>   SSL2_CK_DES

Hmmm....

Ah, I think I see it. Your client anncounces to support both SSLv2
and SSLv3/TLSv1, so we the server decides to go for the newer (and better)
protocol level (SSLv3/TLSv1) and enters the SSLv3/TLSv1 code.
Now it checks the ciphers listed and sees, that no appropriate cipher
was sent (not SSLv3/TLSv1 cipher is in the list).
Solution: if you only offer SSLv2 ciphers, either disable SSLv3 and TLSv1
(SSL_OP_NO_* option set with SSL_CTX_set_options()) or use an
SSLv2_method().

Best regards,
        Lutz
-- 
Lutz Jaenicke                             [EMAIL PROTECTED]
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to