打开终端,输入如下命令:
openssl pkcs12 -in Certificates.p12 -out Certificates.pem -nodes
注意:Certificates.p12,Certificates.pem 都要是绝对路径
例如:
aaMAC:~ wm$ openssl pkcs12 -in /Users/aa/Desktop/发布证书.p12 -out /Users/aa/Desktop/publishPush.pem -nodes
打开终端,输入如下命令:
openssl pkcs12 -in Certificates.p12 -out Certificates.pem -nodes
注意:Certificates.p12,Certificates.pem 都要是绝对路径
例如:
aaMAC:~ wm$ openssl pkcs12 -in /Users/aa/Desktop/发布证书.p12 -out /Users/aa/Desktop/publishPush.pem -nodes