申請憑證

CSR說明

https://haway.30cm.gg/ssl-key-csr-crt-pem/

https://docs.gandi.net/zh-hant/ssl/common_operations/csr.html

Linux 產生CSR 檔

用openssl查看憑證檔內容

憑證可能有不同格式,可以用這兩種指令查看

1
openssl x509 -inform pem -noout -text -in 'cerfile.cer';
1
openssl x509 -inform der -noout -text -in 'cerfile.cer';

https://serverfault.com/a/215617

憑證格式轉換

不同格式的憑證可以互相轉換格式,例如降二進位DER格式轉換成PEM格式可以用下面兩個指令達成

1
2
openssl x509 -inform DER -in <path-to-cer-file> -out <path-to-crt-file> 
openssl x509 -in <path-to-crt-file> -out <path-to-pem-file> -outform PEM

範例:

1
openssl x509 -inform DER -in C:\Certificates\AnyCert.cer -out C:\Certificates\AnyCertCrt.crt openssl x509 -in C:\Certificates\AnyCertCrt.crt -out C:\Certificates\AnyCertInPem.pem -outform PEM

編碼格式說明與憑證講解:
https://blog.miniasp.com/post/2018/04/21/PKI-Digital-Certificate-Format-Convertion-Notes

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/unified-infrastructure-management/20-1/upgrading/ca-uim-upgrade-step-3-deploy-the-upgrade/upgrade-uim-server/secure-hub-and-robot-ca-uim-9-sp1/Convert-Files-to--pem-Format.html

Author

Steven

Posted on

2023-07-27

Updated on

2025-01-14

Licensed under

Comments