You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, how are you? A friend of mine found this code and I'm trying it to see if it fits the needs I have.
I found useful the option to find certificate files and check them, but have some issues using the option.
My directory: /tmp/ssltest
$ ls
testcert.pem testcert2.pem
I found that when you use the -d option, if you point to the directory, you find both certificates
If you use *.pem, it finds the first file and stop searching:
./ssl-cert-check -d /tmp/ssltest/*.pem
Host Status Expires Days
----------------------------------------------- ------------ ------------ ----
FILE:/tmp/ssltest/testcert.pem Expiring Sep 12, 2020 12
I assume this behavior is not the expected. But if pointing to the directory was my workaround, I had no problem with that. Then I tried having more files in the directory /tmp/ssltest, I created a txt file
$ ls
test.txt testcert.pem testcert2.pem
But when I tried searching for certificates in the directory, the script tried to read the txt and failed.
I don't remember much of this, but I do remember to ended up coding a horrible script for nagios (I needed to use nagios at the time). The code to search all the certs works fine (I think), but the nagios alerting I remember was pretty bad. https://github.com/franps/nagios-cryppy
Hey, how are you? A friend of mine found this code and I'm trying it to see if it fits the needs I have.
I found useful the option to find certificate files and check them, but have some issues using the option.
My directory: /tmp/ssltest
I found that when you use the -d option, if you point to the directory, you find both certificates
If you use *.pem, it finds the first file and stop searching:
I assume this behavior is not the expected. But if pointing to the directory was my workaround, I had no problem with that. Then I tried having more files in the directory /tmp/ssltest, I created a txt file
But when I tried searching for certificates in the directory, the script tried to read the txt and failed.
Am I using it wrong? The example in the readme file used the *.pem but I couldn't make it check all the certs in the directory
The text was updated successfully, but these errors were encountered: