一、安裝生成證書程序
①、地址:https://slproweb.com/products/Win32OpenSSL.html(對應操作系統)
二、生成證書【找到安裝位置】
①、打開openssl.exe(用powershell打開)
②、req -newkey rsa:2048 -nodes -keyout 【Key名稱】.key -x509 -days 365 -out 【Cer名稱】.cer --有效期365天 opensslkey名字
③、pkcs12 -export -in 【Cer名稱】.cer -inkey 【Key名稱】.key -out 【Pfx名稱】.pfx
④、Country Name (2 letter code) [AU]:跳過所有步驟
⑤、pkcs12 -export -in 【Cer名稱】.cer -inkey 【Key名稱】.key -out 【Pfx名稱】.pfx
⑥、輸入密碼:mark 確認密碼:mark 即可