I have some expired certificates in
etc/ssl/certs and I have a folder with new certificates.
Is it possible to create a loop to check every certificate in certs folder and if the certificate is expired look up for it in the new folder to replace?
I gotcha all certificates status doing
openssl verify *.pem