使用 GoDaddy 的 spc 文件签署 java 小程序

发布于 2024-10-06 07:12:24 字数 590 浏览 0 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

这样的小城市 2024-10-13 07:12:25

GoDaddy 允许您下载包含 .spc 文件的 .zip 文件。
不明显的是 .spc 文件只是一个 PKCS#7 证书链,可以使用以下命令轻松提取它们:

openssl pkcs7 -inform der -in *.spc -print_certs

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:

openssl pkcs7 -inform der -in *.spc -print_certs
撩起发的微风 2024-10-13 07:12:25

虽然我不知道导致错误的原因,但我能够通过正确遵循 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.

平安喜乐 2024-10-13 07:12:24

如果打开该 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文