通过p12文件导出证书crt文件一直报invalid password
错误。
admin@Jiaozl Downloads % openssl pkcs12 -in ce.p12 -clcerts -nokeys -out MyCertificate.crt
Enter Import Password:
Mac verify error: invalid password?
解决:
在 https://developer.apple.com/account/resources/certificates/list 下载发布证书
# 使用cer转位crt
openssl x509 -in distribution.cer -inform der -out Certificate.crt
# 获取公钥
openssl x509 -pubkey -noout -inform pem -in Certificate.crt > PublicKey.pem
# 获取公钥内容
cat PublicKey.pem