Skip to content

TLS handshake error: EOF #2804

Description

@edo888

Hi,

I have configured nats with TLS, but clients fail to connect with "TLS handshake error: EOF" message. When I enable debug it says:

cid:10 - Starting TLS client connection handshake
cid:10 - TLS handshake error: EOF
cid:10 - Client connection closed: TLS Handshake Failure

It does not seem that TLS is active on the nats server, however monitoring is fine:

openssl s_client -tls1_2 -showcerts -connect 127.0.0.1:8222

outputs the certificate information

openssl s_client -tls1_2 -showcerts -connect 127.0.0.1:4222

outputs:

CONNECTED(00000003)
34371108864:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:/usr/src/crypto/openssl/ssl/record/ssl3_record.c:332:

no peer certificate available

I expect it to output the same certificate information as for monitoring.

It is the same when you try to connect to some server which has no TLS enabled like 1.1.1.1:80

telnet 127.0.0.1 4222

outputs regular text info which has "tls_required":true parameter set.

I'm using version 2.6.6.

Can you help?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions