gpt4 book ai didi

ios - 从 p12/pem 文件获取 bundle id

转载 作者:技术小花猫 更新时间:2023-10-29 11:17:54 33 4
gpt4 key购买 nike

是否可以从 APNS 的 p12/pem 文件中获取应用程序的 bundle id?

我有一个系统,用户可以在其中上传他的推送证书(p12 或 pem),并且很高兴向他展示有关 bundle id 的信息,以便用户能够检查他上传的内容

最佳答案

我不确定它是否 100% 有用,但您可以通过以下方式使用 openssl 库中的命令行工具

openssl pkcs12 -info -in mycert.p12 -passin pass:MyCertPassPhrase

这将产生您可以解析的输出

MAC Iteration 1
MAC verified OK
PKCS7 Encrypted data: pbeWithSHA1And40BitRC2-CBC, Iteration 2048
Certificate bag
Bag Attributes
friendlyName: Apple Production IOS Push Services: com.mybundle.domain
localKeyID: F2 FZ 5D 00 44 73 F1 64 B8 FF EF 37 82 BC 13 F4 81 6A B2 14
subject=/UID=com.mybundle.domain/CN=Apple Production IOS Push Services: com.mybundle.domain/OU=Q7QX7A5JZ7/C=RU
issuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority
-----BEGIN CERTIFICATE-----
MIIFeTCCBGGgAwIBAgIILW8Tn/Z054IwDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV

com.mybundle.domain 是您要查找的内容。

关于ios - 从 p12/pem 文件获取 bundle id,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29171097/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com