如何给WebClip签名

先贴大佬的链接

https://blog.csdn.net/slatop/article/details/124212126

准备材料

1. 开发者证书,用作导出私钥、签名证书

2. Apple开发者公钥证书,证书下是已经过期的,需要从Apple PKI - Apple重新下载安装

Apple Worldwide Developer Relations Certification Authority

需要使用到openssl命令

1. 导出开发者证书pem

openssl pkcs12 -clcerts -nokeys -out discer.pem -in developer.p12

2. 导出证书私钥

openssl pkcs12 -in developer.p12 -nocerts -nodes -out pkey.key

3. 导出Apple开发者公钥证书pem

openssl x509 -inform DER -outform PEM -in apple.cer -out rootcer.pem

4.对文件进行签名

openssl smime -sign -in temp.mobileconfig -out result.mobileconfig -signer discer.pem -inkey pkey.key -certfile rootcer.pem -outform der -nodetach

 

posted @ 2023-04-13 22:35  雨筱逸悠  阅读(108)  评论(0编辑  收藏  举报