Mac OS X-使Atlassian Bamboo可获得钥匙串证书 [英] Mac OS X - Making Keychain Certificates available to Atlassian Bamboo

查看:140
本文介绍了Mac OS X-使Atlassian Bamboo可获得钥匙串证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Bamboo计划来构建一个程序包,我想用我的开发人员证书对该程序包进行签名.在我的构建脚本中,我有这个:

I have a Bamboo plan which builds a package, and I want to sign that package with my developer certificate. In my build script, I have this:

productsign --sign "Name of my certificate" "input.pkg" "output.pkg"

从命令行运行此脚本可以按预期工作.但是,从Bamboo运行脚本,总是出现错误:

Running this script from the command line works as expected. However, running the script from Bamboo, I always get the error:

productsign: error: Could not find appropriate signing identity for "Name of my certificate"

我认为这一定是由于从Bamboo运行时生成脚本在其中运行的上下文所致.如何使证书在Bamboo中可用?它安装在System中,而不是在login中.

I presume this must be because of the context that the build script is run in when run from Bamboo. How do I make the certificate usable in Bamboo? It is installed in System, not login.

推荐答案

如果您需要以root身份运行Bamboo,则需要将登录钥匙串中的相应证书复制到您的系统钥匙串,使用钥匙串访问"(应用程序">实用程序").

If you need to run Bamboo as root, then you'll need to copy the appropriate certificates from your login keychain to your System keychain using Keychain Access (Applications > Utilities).

话虽如此,以用户身份运行Bamboo而不是root可能更好.例如.如果您需要使用移动供应配置文件在同一服务器上签名任何iOS版本,则root将不起作用.

Having said that, it would probably be better to run Bamboo as a user instead of root. E.g. if you need to use mobile provisioning profiles to sign any iOS builds on the same server, being root will not work.

这篇关于Mac OS X-使Atlassian Bamboo可获得钥匙串证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆