Skip to content

Instantly share code, notes, and snippets.

@k3mlol
k3mlol / 证书格式转换.txt
Created August 14, 2022 11:22 — forked from dingcang/证书格式转换.txt
将cer格式的证书转为crt格式
Basically there are two CER certificate encoding types, DER and Base64. When type DER returns an error loading certificate (asn1 encoding routines), try the PEM and it shall work.
openssl x509 -inform DER -in certificate.cer -out certificate.crt
openssl x509 -inform PEM -in certificate.cer -out certificate.crt