Overview
# For files with "RSA" in the name
openssl rsa -in RSA-privkey.pem -out rsa.key
# For files with "ECC" in the name
openssl ec -in ECC-privkey.pem -out ecc.key
# For certificate files (regardless of type)
openssl x509 -in cert.pem -out cert.crt