openssl 轉化文件命令
X509轉PFX:
openssl pkcs12 -export -inkey test.key -in test.cer -out test.pfx
PFX轉X509:
openssl pkcs12 -in test.pfx -nodes -out test.pem
openssl rsa -in test..pem -out test.key
openssl x509 -in test..pem -out test.crt
注意:轉化文件來源路徑和保存路徑一致
加密|簽名方法: