Hi,
I have a server-client system that communicates via TLS. However I am getting
intermittent errors when connecting. The errors look like [as reported by
"ERR_error_string(ERR_get_error(),0)"]:
error:140940F6:SSL routines:SSL3_READ_BYTES:unknown alert type
or
error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
or
error:1408F455:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac
I'm not too sure exactly what is going on. I've done some ssldumps:
New TCP connection #1: m-shaylor.m-systems.com(4321) <-> testrig46.m-systems.com(443)
1 1 0.0734 (0.0734) C>S SSLv2 compatible client hello
Version 3.1
cipher suites
[...suites sniped...]
1 2 0.1290 (0.0555) S>C Handshake
ServerHello
Version 3.1
session_id[32]=
97 f2 9d ee 9b 40 b6 95 2d 3b 0d 84 6f 13 9a a1
ed d4 b5 81 a8 04 d3 10 ea ed 22 80 24 a9 5d fd
cipherSuite TLS_RSA_WITH_RC4_128_SHA
compressionMethod NULL
1 3 0.1290 (0.0000) S>C Handshake
Certificate
1 4 0.1290 (0.0000) S>C Handshake
ServerHelloDone
1 5 0.1994 (0.0703) C>S Alert
Wrong length for alert message: 22
1 6 0.2147 (0.0152) S>C Alert
level fatal
value illegal_parameter
1 0.2473 (0.0326) C>S TCP RST
This one is with the server on solaris and the client on NT. I'm not sure what the
"Wrong length for alert message: 22" is about (message 5), the Client to Server alert
seems to have the wrong length. Its encrypted so its hard to see what is going on.
----and----
1 1 0.0007 (0.0007) C>S Handshake
ClientHello
Version 3.1
resume [32]=
8c a9 fc a3 0c 6e c0 21 2f 08 6d 2e e6 83 41 11
64 1d 4a aa 30 d4 b8 2c 57 22 29 94 e0 56 3a 5b
cipher suites
[...suites sniped...]
compression methods
NULL
1 2 0.1127 (0.1119) S>C Handshake
ServerHello
Version 3.1
session_id[32]=
8c a9 fc a3 0c 6e c0 21 2f 08 6d 2e e6 83 41 11
64 1d 4a aa 30 d4 b8 2c 57 22 29 94 e0 56 3a 5b
cipherSuite Unknown value 0x39
compressionMethod NULL
1 3 0.1127 (0.0000) S>C ChangeCipherSpec
1 4 0.1127 (0.0000) S>C Handshake
1 5 0.1140 (0.0012) C>S ChangeCipherSpec
1 6 0.1140 (0.0000) C>S Handshake
1 7 0.3129 (0.1989) C>S application_data
1 8 0.4232 (0.1102) S>C Alert
1 3.2286 (2.8054) C>S TCP FIN
This time the server is on NT and the client is on solaris. Again there is an
encrypted alert (message 8), it seems to always be going from NT to Solaris.
Has anyone encountered anything like this? The best theory I can come up with is that
a gibberish alert message is somehow being sent but I have no idea weather that is the
case or why it would be happening.
Also, as an aside, is it possible to decrypt encrypted alert messages? Running
ssldump -k <keyfile> -d works for application data but doesn't seem to do anything to
the alert messages.
Any help or insights into this would be greatly appriciated!
Matthew
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]