开发者社区> 问答> 正文

我想使用终端将key.p8转换为key.pem

我有.p8键格式,从Apple发送推送通知,从节点js到IOS,我有cert.pem,我希望使用终端将key.p8转换为key.pem。

我尝试了更多的搜索,但我没有得到正确的我的需要。我想要的是:

Bag Attributes
    friendlyName: ...........
    localKeyID: A8 36 8D 0E B2 D6 19 A1 B1 EF E7 4E 61 99 89 F3 25 D6 F1 D3 
Key Attributes: <No Attributes>
-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQI/Xaxq3vjtoMCAggA
MBQGCCqGSIb3DQMHBAi8DFOvE6FFrQSCBMhvMZ5+REeVVbPCVni1zrvc7a3n0Awg
F5q95GgY62UgDaZLsuP9NbrMGgwp3pmo9bQImhVDGqedIRQ7oeShESThTH8Nn68E
mIMOgF+5CB7Zmsw04CUHdeVqoMjChrnhnpVZd9J7KMJM+wDlKtl02rw92kSGY1wB
msiAm5OqFlWr9h6PJpzXm6v6QzdpGdY6AkVGcJuS0fE7LRs/43ZszcS0PxY84Vve
2PLZJegrV6xUWchH1kkFRf7jNiRvn39ObYQAXn3Gv1kCUCylXRREhaKaOmGsjQGU
dRnCnhCc3plLiHNUDubas+sD7QBW+j7Ge9U/yfAL8QlghrLvd9KPO0CaiHTgIsen
B9yquPYyLwyUxgTul6PuRzttPo/NIOn8CeOtlv6VGQYjZ9/US8SaJGjQDS37VqAh
zBevhUH7JKDCLTTmGvX/YemtO+SUqxU/7wvN7p+HnzFmGEEMC6199Novd0YkNLyw
MRQnyaARoL3TzAOXKcyGUZFL8ukm7AYRAJKaiFiZh+lk49mt/SbDPsoTi8Or4iMJ
89qnvMzC7cw3S/IOiOoNYF7seJS32yBC9HZqJwWYEjLSTefiUtZRPd1QC4IBrgoP
1qf4WjXSts0VP3RoYXcf661mdGCXD63N/GvjdThjqv2bBic6VZ9BqHUJdBdAWkkd
KXtfkzVVKh1RQVpQuiVNTFaFB63QudjoMVV/RHCTJJYC5BZjvwaEphvTGEYYOHzZ
h3K9iciY+Vc4W3M/5wah/lrhAGuJKCSyua1RavpjOGemufSBvl/IHxYLUx+F50E6
xpbk0WTI5JbKD0Qf+5DllV6OfbLjb24xCfNSXCHPUfM96Ui9bO2VIhGa476t5MVY
c3tO9HCyQEqh6wDH/dFpmQS+YGEup/2WNs3WOY7K3FoPbZSNfSj1bQ0Aj3S9WY6Y
ssiOjS3tvfgigmHx7At+Y/wBokkiBVSa/hOcwLIioxpdhC75PDxOSmOsPhv/rCLI
sjULjfAi0KtnAejdJzARYEAxkIrDCCKS6ZzCpq7PikUVAieffrHu0oQhB4vHhskD
FKFn1N5wCIDFXvj3hWnH1lDhNHQMRahMQwU9yQBrJA4L3sILHdlzzmG6DPj3TguJ
V9mie4SeOs/YNZ9Rx7K192w9FnLPLORynrWhXx3iB6ki1HQkpIqpPwdXijZCvwn6
p2E1ecL5cPFnf35pUDEsJ/fkt5xGzOwp7B2w5ZlZp0AWtcMMNexqlrGxYPD0bhRq
drO4QLMj/IwI7DsbqfVwtNJiqIAJbZmQtzb2Z78tGi2I+scEYeLxBPIICEIjJdrQ
c87PPegsFj7kD14LLfyWBhnazhhRLG2MdNAyF/Mt5elXNo5SYMlxEZkRVXAwkTqc
UzyT7LM63MwXR6ipLe4N2oayAp6lvsVWH5Hh6MvDIpw+k81n2UAe10I/cAYE1qyP
eepu6iFkSxrvVfLGex63H7RPbNGuxmZ765oAslpsdJxaXeHWW++iQdPCWv5aNqrw
gLWyWmtfkfUsL3vyvkBoe7fsFBVcHBFgsyJsJxLfEtSKmuk1eGOCbDsCtsi0oISZ
CqOeSCpePWxs3kvx6Oakk3oEAKQ9wQc8wgoK8b+gl+f/f+NEgVomy8JBt0iK7rKJ
i6g=
-----END ENCRYPTED PRIVATE KEY-----

有人能帮我吗。

展开
收起
游客5akardh5cojhg 2019-12-15 16:37:51 1329 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载