Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jarsigner (MIME Content-Type is not application/timestamp-reply)

Some time ago I wrote a program to sign jars in our build process. Which worked for a couple of months without any problems.

Now the jarsigner outputs (without changing anything!):

jarsigner: unable to sign jar: 
java.io.IOException: MIME Content-Type is not application/timestamp-reply

and the jars are not signed anymore.

What is the problem and what do I need to do to get the jarsigner working again?

I'm using this timestamp server:
http://timestamp.comodoca.com

and this Java version:
Java HotSpot(TM) 64-Bit Server VM "1.8.0_101" on Linux

This is my exact command line (which worked for the last months!):
jarsigner -storetype pkcs12 -keystore certificate_file.p12 -storepass mypassword -tsa http://timestamp.comodoca.com myjarfile.jar myalias

like image 532
Lars Avatar asked Oct 29 '22 18:10

Lars


2 Answers

I am experiencing the same problem. I think something change in Comodo's timestamp service today. The response status for http://timestamp.comodoca.com is currently HTTP/1.1 302 Moved Temporarily Content-Type: text/html

This causes a problem for jarsigner as it is expecting content-type to be application/timestamp-reply

You should contact Comodo support at https://support.comodo.com/index.php?/Knowledgebase/Article/View/68/0/time-stamping-server

like image 189
user1442999 Avatar answered Nov 15 '22 05:11

user1442999


Today it works. Seems like they changed something at their timestamp server.

like image 40
Lars Avatar answered Nov 15 '22 06:11

Lars