cer to crt

openssl 指令 將 cer 轉檔為 crt

Last Updated on October 11, 2022

前些時候接到一個公機關的主機維護案,SSL 證書不可用免費和外面購買的證書,指定需安裝公機關核發的 SSL 證書。

混亂的證書文件 pem、crt、cer,都是 SSL 證書文件,應該不會在碰這種案子了,記錄一下。

cer to crt

cer 是 Windows IIS 上使用的格式,如在 Linux nginx 系統上,要轉換成 crt。

cer (DER 編碼二進制格式) 轉成 crt

openssl x509 -in server.cer -out server2.crt -inform DER

Photo by Florian Klauer on Unsplash


Share your thoughts