我有一个 .cer 证书,该证书是从我没有身份验证的客户端的 Apple Developer Portal 下载的。我正在运行 openssl x509 来读取 .cer ,它没有显示与 #id 匹配的值( .cer 和 .p12 并上传到fastlane托管仓库中),但 Team ID 和 Team Name
请提出建议,当我无法使用 Spaceship (它会返回 #id )时,如何在本地获取 #id 值。登录太空飞船后获得“ strong>值”)?
参考:
https://www.rubydoc.info/github/fastlane/spaceship/Spaceship/Certificate
答案 0 :(得分:1)
我可以回答您的两个问题之一:
太空飞船如何从Apple Developer Portal获取.cer文件的#id值?
当飞船创建证书时,它通过向API发送请求来这样做: https://github.com/fastlane/fastlane/blob/75302f9f842fb1d7361dc1e769cdd7398022f4b4/spaceship/lib/spaceship/portal/certificate.rb#L309-L313
该API调用的响应用于创建一个对象(通过上面的new
),该对象还包含一个id
属性:
https://github.com/fastlane/fastlane/blob/75302f9f842fb1d7361dc1e769cdd7398022f4b4/spaceship/lib/spaceship/portal/certificate.rb#L214-L253
然后使用id
来定义写入证书的文件名(除非您手动定义filename
):
https://github.com/fastlane/fastlane/blob/f32b007ff45e648b37b6c9c2037ac481f36b7780/cert/lib/cert/runner.rb#L191-L195