Answer the question
In order to leave comments, you need to log in
How to track the expiration date of a digital certificate when there are a lot of them?
Good afternoon!
Please share your experience, who monitors the expiration dates of digital certificates?
The situation is this, in the office there are about 170-200 digital certificates, all issued at different times. Users do not particularly track when their certificate expires and the person who receives certificates for them remains the last, although he does not have the ability to constantly track the deadlines.
maybe someone knows a utility or program that imports .cer files and at least builds certificate data in an approximate tabular format.
Answer the question
In order to leave comments, you need to log in
We have a similar problem perfectly solved by Zabbix with the appropriate template .
To monitor the validity of certificates, I use this simple script:
#!/bin/bash
#usage check-dates.sh `date in YYYYMMDD format`
for f in /certificates/*.cer
do
date=$(openssl x509 -in $f -noout -enddate | sed 's/notAfter=//g')
enddate=$(date -d "$date" +%Y%m%d)
if (($enddate < "$1"))
then
### your code here
fi
done
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question