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

checkcert_* do not verify SANs??? #22

Open
mgedmin opened this issue Feb 26, 2018 · 2 comments
Open

checkcert_* do not verify SANs??? #22

mgedmin opened this issue Feb 26, 2018 · 2 comments

Comments

@mgedmin
Copy link
Member

mgedmin commented Feb 26, 2018

I had

checkcert_imaps mail.pov.lt
checkcert_ssmtp mail.pov.lt

pass when the SSL certs for mail.pov.lt listed only fridge.pov.lt (and a bunch of other SANs) but no mail.pov.lt.

I can reproduce:

checkcert mail.pov.lt

says OK, even though fridge.pov.lt does not serve a SAN for mail.pov.lt!

@mgedmin
Copy link
Member Author

mgedmin commented Feb 26, 2018

Note that the underlying tools from underlying monitoring-plugins do not support this, e.g. /usr/lib/nagios/plugins/check_http --help says:

Please note that this plugin does not check if the presented server
certificate matches the hostname of the server, or if the certificate
has a valid chain of trust to one of the locally installed CAs.

@mgedmin
Copy link
Member Author

mgedmin commented Apr 25, 2018

Consider ssl-cert-check as an alternative. It's packaged in Ubuntu.

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

No branches or pull requests

1 participant