, , , ,

Convertir un fichier PEM en CRT

# le fichier PEM utilise un format texte (encodage en base64)
file root_ca_tnf.cert.pem 
root_ca_tnf.cert.pem: PEM certificate
 
# Conversion PEM -> CRT
openssl x509 -inform PEM -outform DER -in root_ca_tnf.cert.pem -out root_ca_tnf.cert.crt
 
# les fichier CRT utilisent un format binaire (DER)
file root_ca_tnf.cert.crt 
root_ca_tnf.cert.crt: data
 
 
# Afficher le contenu du fichier CRT dans la console
 openssl x509 -inform DER -text -noout -in root_ca_tnf.cert.crt