- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
前段时间我编写了一个程序来在我们的构建过程中对 jars 进行签名。这几个月没有任何问题。
现在 jarsigner 输出(没有改变任何东西!):
jarsigner: unable to sign jar:
java.io.IOException: MIME Content-Type is not application/timestamp-reply
jar 不再签名。
问题是什么?我需要做什么才能让 jarsigner 重新工作?
我正在使用这个时间戳服务器:
<强> http://timestamp.comodoca.com
和这个 Java 版本:
Linux 上的 Java HotSpot(TM) 64 位服务器虚拟机“1.8.0_101”
这是我的确切命令行(过去几个月一直有效!):jarsigner -storetype pkcs12 -keystore certificate_file.p12 -storepass mypassword -tsa http://timestamp.comodoca.com myjarfile.jar myalias
最佳答案
我遇到了同样的问题。我认为今天 Comodo 的时间戳服务发生了一些变化。 http://timestamp.comodoca.com 的响应状态目前HTTP/1.1 302 临时移动内容类型:文本/html
这会导致 jarsigner 出现问题,因为它期望内容类型为 application/timestamp-reply
您应该联系 Comodo 支持 https://support.comodo.com/index.php?/Knowledgebase/Article/View/68/0/time-stamping-server
关于java - Jarsigner(MIME 内容类型不是应用程序/时间戳回复),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39977930/
给定一个带有多个 date_time 戳的字符串,我想 提取第一个戳及其前面的文本 候选字符串可以有一个或多个时间戳 后续的 date_time 戳记将被 sep="-" 隔开 后续date_time
是否可以合并从相机拍摄的文本和照片?我想在照片上标记日期和时间,但我在 Google 上找不到任何内容。 最佳答案 使用下面的代码来实现你所需要的。 Bitmap src = Bitm
有没有办法通过 Graph API 戳另一个用户?基于this post ,并使用 Graph Explorer ,我发布到“/USERID/pokes”,我已经授予它(Graph API 应用程序和
我有两个向左浮动的元素。一个是 body 的第一个 child ,另一个是容器的第一个 child ,容器是 body 的第二个 child 。 ...
我是一名优秀的程序员,十分优秀!