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