Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed tls Handshake, EOF #495

Open
fechnert opened this issue Jul 28, 2015 · 7 comments
Open

Failed tls Handshake, EOF #495

fechnert opened this issue Jul 28, 2015 · 7 comments
Assignees

Comments

@fechnert
Copy link

logstash-forwarder throws this Error after starting with valid and signed Certificates:

2015/07/28 11:32:31.299607 Loading client ssl certificate: /root/CA/minion2-pub.pem and /root/CA/minion2-key.pem
2015/07/28 11:32:32.221653 Connecting to [xxx.xxx.xxx.xxx]:12345 (salt-minion-1.it.domain.org) 
2015/07/28 11:32:32.813255 Failed to tls handshake with xxx.xxx.xxx.xxx EOF

Other issues say that they are not using IP SANs. But i'm using hostnames so that shouldn't be a problem.
The certificates are signed by my own CA, but the CA's certificate is imprted and loaded in the senders server.

@smashwilson
Copy link

I'm seeing this as well.

Are you using the official logstash image from DockerHub on the receiving end, by any chance? I was able to replicate this locally when logstash is running in docker, but if I run logstash directly, instead, the connection succeeds. I suspect it has something to do with openssl within that container.

@smashwilson
Copy link

Actually, pinning the docker image to 1.5.2 instead seems to work, too:

docker run --name=logstash -d \
  -v ${PWD}/conf:/conf:ro \
  -v ${PWD}/certificates:/certificates:ro \
  -p 5000:5000 \
  logstash:1.5.2 \
  logstash -f /conf/logstash.conf --debug

@ph
Copy link
Contributor

ph commented Jul 29, 2015

I am working on fixing this, see the dicussion here this elastic/logstash#3657.
We will release a 1.5.4 version shortly.

@ph ph self-assigned this Jul 29, 2015
@ph
Copy link
Contributor

ph commented Aug 21, 2015

Would you mind trying it with logstash 1.5.4 if you still see this issue?

@fechnert
Copy link
Author

I will try this if i have some time, but i'm already working on an ELK stack.

@AlexB030
Copy link

As far as I am concerned, the problem is still existent with version 1.5.4... tried it out right now

@AlexB030
Copy link

Hmm ok, as stated in this post (elastic/logstash#3657) removing the lines "ssl certificate" and "ssl key" in your lsf config file does the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants