Using Debian Lenny with bash:
I have an easy-rsa setup that gererates certifcates. I can revoke them and over time the revoke list is getting a bit to large to "just see" which
certificates have been revoked.
The normal listing command lists just the serial numbers, I want the common names of the certificates. I'm almost there using a simple script but... now I'm stuck.
./list-crl crl.pem | grep "Serial Number:" | cut -c20-21 > /root/crlserial
For each line in crlserial do
grep "Subject:" keys/$1.pem | cut -d, -f5
Output: [email protected]
How do I do the line:
For each line in crlserial do (the $1 in the next line is an indication where the parameter needs to go)
The crlserial file has one serial number per line like
If it's easier to make it all just a one-liner script not involving a temp file... no problem, even better.