您好,登錄后才能下訂單哦!
SSL證書(shū)格式轉(zhuǎn)換 – HTTPS SSL 教程
這兩種格式的證書(shū)可通過(guò)直接修改證書(shū)文件擴(kuò)展名的方式轉(zhuǎn)換,如將”server.crt”直接重命名為”server.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
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ú)私鑰
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)):
全球可信CA機(jī)構(gòu)
免責(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)容。