使用 GoDaddy 的 spc 文件签署 java 小程序
我正在尝试使用 godaddy 的 spc 文件签署 java 小程序。这是我正在使用的命令:
keytool -import -keystore codesignstore -storepass [pass] -alias [alias] -file [filename]
不幸的是,运行此命令会返回
keytool 错误:java.lang. lang.Exception:输入不是 X.509 证书
我与 GoDaddy 交谈,他们向我保证这确实是有效的 X.509 证书,否则提供 0 帮助。有人知道如何进行这项工作吗?我读过一些评论,表明问题可能出在别名上,但我们尝试了创建 CSR 时指定的别名以及 GoDaddy 中指定的别名。此外,有人指出该问题可能与此 java bug 有关: https:// bugs.java.com/bugdatabase/view_bug?bug_id=4874076。但是,我在 bug 报告中指出的类型的 spc 中没有看到任何奇怪的 URL。预先感谢您的帮助。
I'm trying to sign a java applet using an spc file from godaddy. Here's the command I'm using:
keytool -import -keystore codesignstore -storepass [pass] -alias [alias] -file [filename]
Unfortunately, running this command returns
keytool error: java.lang.Exception: Input not an X.509 certificate
I talked to GoDaddy and they assure me that it is indeed a valid X.509 certificate and otherwise provided 0 help. Anyone know how to make this work? I've read a few comments that suggest that the problem might be the alias, but we've tried the alias we specified when creating the CSR as well as the one specified in GoDaddy. In addition, some note that the problem may be related to this java bug: https://bugs.java.com/bugdatabase/view_bug?bug_id=4874076. However, I don't see any odd URLs in the spc of the type they note in that bug report. Thanks in advance for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
GoDaddy 允许您下载包含
.spc
文件的.zip
文件。不明显的是
.spc
文件只是一个 PKCS#7 证书链,可以使用以下命令轻松提取它们:GoDaddy lets you download a
.zip
file containing a.spc
file.what is not evident is that an
.spc
file is just a PKCS#7 certificate chain, they can easily be extracted using:虽然我不知道导致错误的原因,但我能够通过正确遵循 GoDaddy 来完成签名过程说明。我们最初生成了自己的 CSR,然后在中途跳入 GoDaddy 的指示。对于遇到此问题、无法阅读/遵循说明的其他人,请按照 GoDaddy 概述的步骤重新开始,以免让自己头痛。
While I don't know what was causing the error, I was able to get through the signing process by properly following GoDaddy's instructions. We originally generated our own CSR and then jumped into GoDaddy's instructions part of the way through. For others with this problem that have problems reading/following instructions, save yourself the headache and start over again following the steps that GoDaddy outlines.
如果打开该 spc 文件,则可以在 Windows 中使用 certmgr.msc 将证书导出为 X.509
If you open up that spc file, you can export the certificates as X.509, in Windows with certmgr.msc