error: wrong version number

David von Oheimb it at von-Oheimb.de
Mon Jul 11 07:50:41 UTC 2022


Yes, the TLS diagnostics can be confusing:
it reports "wrong version" also when there is no TLS (version) being
used by the peer at all.

 David

On Mon, 2022-07-11 at 00:16 -0400, Viktor Dukhovni wrote:
> On Sun, Jul 10, 2022 at 02:41:23PM +0000, loic nicolas wrote:
> 
> > I am trying to connect my client to my server but I always receive
> > an
> > error.(ssl3_get_record:wrong version
> > number:../ssl/record/ssl3_record.c:331)
> > 
> > How can I get more information about the error and fix it? (the
> > error
> > is probably in my client)
> 
> Indeed, the client's packet to the server is not a TLS Record.
> 
> > openssl s_server -accept 127.0.0.1:3000 -key server.key -cert
> > server.cert -msg
> > 
> > <<< ??? [length 0005]
> >     20 ae c0 2e d6
> 
> Whatever the client is doing, it isn't starting a TLS session with a
> TLS handshake record containing a TLS client HELLO.
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20220711/7dcd0f08/attachment.htm>


More information about the openssl-users mailing list