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

Filebeats SSL/Cert Validity issue #4926

Open
mikeeaton83 opened this issue Mar 30, 2016 · 1 comment
Open

Filebeats SSL/Cert Validity issue #4926

mikeeaton83 opened this issue Mar 30, 2016 · 1 comment

Comments

@mikeeaton83
Copy link

Hi,

So I created a self signed ssl which starts at 13.28:

[root@web-01-iom ~]# openssl x509 -startdate -noout -in /etc/pki/tls/certs/logstash-forwarder.crt
notBefore=Mar 30 13:28:11 2016 GMT

When trying to (re)start Filebeat i get the following error:

2016/03/30 13:47:55.988952 transport.go:125: ERR SSL client failed to connect with: x509: certificate has expired or is not yet valid
Stopping filebeat:                                         [  OK  ]
Starting filebeat: 2016/03/30 13:47:56.110564 transport.go:125: ERR SSL client failed to connect with: x509: certificate has expired or is not yet valid
                                                           [  OK  ]

Notice the date/time stamp? it's an hour behind, but the SSL cert is still valid..

The dateime on the server is actually:

[root@web-01-iom ~]# date
Wed Mar 30 14:48:24 BST 2016

EDIT:

Just to prove it hasn't expired..

[root@web-01-iom ~]# openssl x509 -enddate -noout -in /etc/pki/tls/certs/logstash-forwarder.crt
notAfter=Mar 28 13:28:11 2026 GMT

Let me know if you need anything else.

@sjsadowski
Copy link

I don't think it has to do with expiration, it's that go can't validate the full chain. Most self-signed certificates would not be considered 'valid' in a production environment.

With that being said, you probably generated a CA cert when generating the self-signed cert - is that configured in filebeat as per: https://www.elastic.co/guide/en/beats/filebeat/current/configuration-output-tls.html ?

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

3 participants