tomcat p12證書另存為nginx .crt證書和.key私鑰
Tomcat使用的.pfx或.keystore文件都是私鑰及公鑰證書一起的,通過pin保證安全;nginx只需要使用.pem或.crt公鑰證書文件和.key私鑰即可,如果原ssl證書不方便重新下載,在已有tomcat證書的情況下,需要手動導出處理。文章來源地址http://www.zghlxwxcb.cn/news/detail-627074.html
- 下載openssl 1.1.1
# 注意版本必須是這個才行,下載3.x版本不能用
https://slproweb.com/products/Win32OpenSSL.html
# win版
https://slproweb.com/download/Win64OpenSSL_Light-1_1_1u.exe
- 通過命令導出文件
openssl pkcs12 -in C:\Users\entin\Desktop\123.pfx -clcerts -nokeys -out C:\Users\entin\Desktop\123.crt
openssl pkcs12 -in C:\Users\entin\Desktop\123.pfx -nocerts -nodes -out C:\Users\entin\Desktop\123.key
- Over.
文章來源:http://www.zghlxwxcb.cn/news/detail-627074.html
到了這里,關于tomcat p12證書另存為nginx .crt證書和.key私鑰的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!