-
Notifications
You must be signed in to change notification settings - Fork 96
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
certificate verify failed
and unable to add cert into trusted
#40
Comments
Hi @zoell. Sounds like the client is missing the root cert or the server isn't sending all the intermediate certs. You have a couple options. You can add the CA root cert to sensu's openssl certs. You could pass the CA root cert to the plugin with the |
@zoell were you able to resolve this? |
@eheydrick I'm having this issue but the code is generated from a list of hosts and only a few are affected by the missing intermediate so I'd like to avoid adding more flags. Adding the intermediate to the system certs doesn't seem to have any effect on what the plugin is using. |
@amwilson |
@jothoma1 For now I'm just putting the intermediate into /opt/sensu/embedded/ssl/certs and regenerating the hash'd filenames. This doesn't solve the issue with windows nodes however. |
@amwilson Thanks for the info, for my case, i have stopped using the official slack handler and now i'm using a python one which works flawlessly :) |
I think what Eric was trying to say is use this option: https://github.com/sensu-plugins/sensu-plugins-http/blob/master/bin/check-http.rb#L122-L125 If that does not work I suspect it as @amwilson says and there is an upstream bug. |
I just like to point out that StartSSL has been deemed not trustworthy and removed from most systems. This started happening around October 2016 and should be in full effect now. |
I feel like we should rename this to reflect the issue being that it does not work with the current flags. We will not be doing anything by default to make any StartSSL certs work as they are not trusted for a legitimate reason... |
certificate verify failed
and unable to add cert into trusted
Hi there! Same problem here. In my case, the web server sends the intermediate certificates (so I haven't even tried to use So I'm starting to suspect that the problem is that the URL to check is of the form "https://URL/path", but at the same time "https://URL" does not exist. |
Hi,
I am using a free StartSSL.com certificate at one of my applications and using this:
check-http.rb -s -u https://url_of_app:5520/test
I get the following error:
Request error: SSL_connect returned=1 errno=0 state=error: certificate verify failed
Any idea what is wrong? The certificate is not expired. Maybe I have to add it to the ca store somehow?
The text was updated successfully, but these errors were encountered: