Previously we were using a proxy without authentication and jarsigner was fine with that. Since the proxy is now requiring user and password we have no way for jarsigner to cope with that.
Is there a way to make jarsigner work with a proxy requiring authentication?
Here is the command we were using before (with no authentication):
jarsigner -sigalg SHA256withRSA -digestalg SHA-256 -verbose -tsa 'http://timestamp.digicert.com' -J-Dhttp.proxyHost=my.server -J-Dhttps.proxyPort=8080
We tried this:
jarsigner -sigalg SHA256withRSA -digestalg SHA-256 -verbose -tsa 'http://timestamp.digicert.com' -J-Dhttp.proxyHost=my.server -J-Dhttps.proxyPort=8080 -J-Dhttp.proxyUser=user-J-Dhttp.proxyPassword=password
And this:
jarsigner -sigalg SHA256withRSA -digestalg SHA-256 -verbose -tsa 'http://timestamp.digicert.com' -J-Djava.net.useSystemProxies=true
None of them is working.
Is there a way to sign jar files that works? That is: can jarsigner work? If not: are there other alternatives?
We are using openjdk8.
You compile this with
You run this with
And you have a new jarsigner that works with proxy authentication.