谁能告诉我如何签署更新的mac应用程序的火花。我查过https://github.com/sparkle-project/Sparkle/wiki/publishing-an-update了
但idea.Please并没有告诉我
这是由完成的吗?除了签署更新的开发人员id之外,还有什么其他的方法。
发布于 2014-01-21 10:30:04
事实上,正如你所提到的文件中所指出的,你可以:
(A)使用Apple developer证书共同设计您的应用程序--您应该使用Apple的签名工具和工作流来完成这一任务。如果您想使用命令行样式,则在以下行中:
codesign -f -s "$identity" "$somepath"codesign --entitlements "$entitlements_path" --resource-rules "$tpl" -f -s "$identity" "$somepath"你可以在苹果:https://developer.apple.com/library/mac/documentation/Security/Conceptual/CodeSigningGuide/Procedures/Procedures.html上找到更多关于这一点的信息。
或者(B)如果不能/不会codesign,那么仍然可以使用DSA密钥对更新本身进行签名。这个是在您链接的页面中记录的。基本上,您应该使用Sparkle提供的脚本:ruby sign_update.rb path_to_your_update.zip path_to_your_dsa_priv.pem
然后,您应该将签名添加到附录中。
如果你真的想自己做这件事,那么你可以启动openssl并进行一些工作--但同样,为什么不使用Sparkle漂亮的脚本呢?)
# Generate keys
/usr/bin/openssl dsaparam 1024 < /dev/urandom > dsaparam.pem
/usr/bin/openssl gendsa dsaparam.pem -out dsa_priv.pem
/usr/bin/openssl dsa -in dsa_priv.pem -pubout -out dsa_pub.pem
rm dsaparam.pem
# Sign the update
/usr/bin/openssl dgst -sha1 -binary < "${dmgFinal}" | /usr/bin/openssl dgst -dss1 -sign "dsa_priv.pem" | /usr/bin/openssl enc -base64希望这能有所帮助。
https://stackoverflow.com/questions/21254574
复制相似问题