TLS Cheatsheet
Converting Between Formats¶
-
Convert a DER file (.crt .cer .der) to PEM¶
openssl x509 -inform der -in certificate.cer -out certificate.pem
-
Convert a PEM file to DER¶
openssl x509 -outform der -in certificate.pem -out certificate.der
Generating Certificates¶
-
Generating a Root Cert¶
openssl genrsa -out rootCA.key 2048 openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem
-
Generating a Verification Cert¶
-
Generating device cert¶
Checking Certificates¶
Last update: 2023-03-28