codesign:“参数列表太长” [英] codesign: "Argument list too long"
问题描述
在过去 ,我不得不编码一个.dmg文件。
In the past, I had to codesign a .dmg file.
旧证书已过期,我有一个新的签名。没问题,对吧?做我上次做的什么?是。我在Windows中导出新的证书链和私钥作为.pfx文件。它似乎我可以直接导入到OS X钥匙扣工具,而不转换到.p12首先。所以我做了。
The old certificate has since expired, and I have a new one to sign with. No problem, right? Do what I did last time? Yes. I exported the new certificate chain and private key as a .pfx file, in windows. It would seem I can import that directly into the OS X keychain tool, without converting to .p12 first. So I did.
当实际codeign的时候,第一次尝试说,它不能确定使用哪个证书。因此,我将旧的证书链和私钥放入一个钥匙扣(2011),并在另一个(2012)中新的证书链,然后重试:
When it comes time to actually codesign, first try says it can't determine which certificate to use. So I put the old certificate chain and private key into one keychain (2011), and the new ones in another (2012), and try again:
codesign -s标识符名称--keychain 2012.keychain --verbose --dryrun somefile.dmg
返回...
somefile.dmg:signed []
BUT!
codesign -sIdentifier Name -keychain 2012.keychain --verbose somefile.dmg
返回...
somefile.dmg:参数列表过长
只是为了确保...
codesign -d --verbose somefile.dmg
显示。 ..
somefile.dmg:未签署代码对象
codesign -sIdentifier Name--keychain 2011.keychain --verbose somefile.dmg
显示...
somefile.dmg :signed generic [somefile.dmg]
tl; dr ,但是当我尝试这样做与新的,它工作在一个dryrun,但当我尝试签署真正的命令返回参数列表太长。
tl;dr I can still sign things ok with my expired certificate, but when I try to do so with the new one, it works on a dryrun, but when I try to sign for real, the command returns "argument list too long".
我一直在努力想出大约两个星期的时间,我不认识你,而且我可以从搜索中找到,这个神秘的错误信息没有找到。
I've been trying to figure this out for about two weeks now I kid you not, and as far I can find from searching, there is nothing to be found on this mysterious error message.
关于发生了什么,或者我还能做些什么呢?
Any ideas as to what is going on, or what more I can do?
谢谢,
-Lunpa
推荐答案
我在OSX 10.6.8中遇到这个问题。
I was having this problem in OSX 10.6.8.
幸运的是,它看起来像在10.7 Lion中运行相同的命令。
Fortunately, it looks like running the same command in 10.7 Lion worked fine.
这篇关于codesign:“参数列表太长”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!