- 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
SSL:Correlate PEM and KEY Files
        lbonanomi edited this page Mar 22, 2019 
        ·
        1 revision
      
    You should have labelled your SSL .pem and .key files, but you didn't. Associate them with the power of math! If the checksums align between a key and PEM, they are a pair.
for f in $(ls | egrep -i "pem|key"); 
do
    printf $(openssl rsa -modulus -noout -in "$f" 2>/dev/null | openssl md5 | awk '{ print $NF }')"\t$f\n";
    printf $(openssl x509 -modulus -noout -in "$f" 2>/dev/null | openssl md5 | awk '{ print $NF }')"\t$f\n"; 
done | sort -k1 | grep -vi \.csr
- Backup-and-Restore
 - Console
 - Emergencies
 - Housekeeping
 - Integrations-and-External-Programs
 - Search
 - Throttles
 - Usage