溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶(hù)服務(wù)條款》

SSL證書(shū)格式轉(zhuǎn)換 – HTTPS SSL 教程

發(fā)布時(shí)間:2020-08-07 09:30:48 來(lái)源:ITPUB博客 閱讀:267 作者:hdgara1 欄目:網(wǎng)絡(luò)安全

SSL證書(shū)格式轉(zhuǎn)換 – HTTPS SSL 教程

  1. CER/CRT 轉(zhuǎn)換為PEM

這兩種格式的證書(shū)可通過(guò)直接修改證書(shū)文件擴(kuò)展名的方式轉(zhuǎn)換,如將”server.crt”直接重命名為”server.pem”即可

  1. PFX 轉(zhuǎn)換為PEM

PFX格式一般出現(xiàn)在windows server中,可通過(guò)openssl命令轉(zhuǎn)換。

提取私鑰: openssl pkcs12 -in certname.pfx -nocerts -out key.pem -nodes

提取證書(shū):openssl pkcs12 -in certname.pfx -nokeys -out cert.pem

  1. P7B 轉(zhuǎn)換為PEM

P7B格式一般出現(xiàn)在windows server和tomcat中,可通過(guò)openssl命令轉(zhuǎn)換。

證書(shū)轉(zhuǎn)化:openssl pkcs7 -print_certs -in incertificat.p7b -out outcertificate.cer

獲取outcertificat.cer里面[—–BEGIN CERTIFICATE—–, —–END CERTIFICATE—–]的內(nèi)容,保存為pem格式作為證書(shū)上傳。

私鑰轉(zhuǎn)化:無(wú)私鑰

  1. DER 轉(zhuǎn)換為PEM

DER格式一般出現(xiàn)在java平臺(tái)中。

證書(shū)轉(zhuǎn)化:openssl x509 -inform der -in certificate.cer -out certificate.pem

私鑰轉(zhuǎn)化:openssl rsa -inform DER -outform PEM -in privatekey.der -out privatekey.pem

轉(zhuǎn)換后的證書(shū)文件(*.pem)應(yīng)類(lèi)似下面的格式(可使用notepad++等文本編輯器打開(kāi)):

SSL證書(shū)格式轉(zhuǎn)換 – HTTPS SSL 教程

  SSL證書(shū)格式轉(zhuǎn)換 – HTTPS SSL 教程

全球可信CA機(jī)構(gòu)

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI