mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-16 13:25:34 +00:00
7028490: better suggestion for jarsigner when TSA is not accessible
Reviewed-by: mullan
This commit is contained in:
parent
93af7b4699
commit
26b60b1b28
@ -1238,10 +1238,13 @@ public class JarSigner {
|
||||
// Provide a helpful message when TSA is beyond a firewall
|
||||
error(rb.getString("unable.to.sign.jar.") +
|
||||
rb.getString("no.response.from.the.Timestamping.Authority.") +
|
||||
rb.getString("When.connecting.from.behind.a.firewall.then.an.HTTP.proxy.may.need.to.be.specified.") +
|
||||
rb.getString("When.connecting.from.behind.a.firewall.an.HTTP.or.HTTPS.proxy.may.need.to.be.specified.") +
|
||||
rb.getString("Supply.the.following.options.to.jarsigner.") +
|
||||
"\n -J-Dhttp.proxyHost=<hostname> " +
|
||||
"\n -J-Dhttp.proxyPort=<portnumber> ", e);
|
||||
"\n -J-Dhttp.proxyHost=<hostname>" +
|
||||
"\n -J-Dhttp.proxyPort=<portnumber>\n" +
|
||||
rb.getString("or") +
|
||||
"\n -J-Dhttps.proxyHost=<hostname> " +
|
||||
"\n -J-Dhttps.proxyPort=<portnumber> ", e);
|
||||
}
|
||||
|
||||
sfFilename = sf.getMetaName();
|
||||
|
||||
@ -182,10 +182,11 @@ public class JarSignerResources extends java.util.ListResourceBundle {
|
||||
{"TSA.certificate.", "TSA certificate: "},
|
||||
{"no.response.from.the.Timestamping.Authority.",
|
||||
"no response from the Timestamping Authority. "},
|
||||
{"When.connecting.from.behind.a.firewall.then.an.HTTP.proxy.may.need.to.be.specified.",
|
||||
"When connecting from behind a firewall then an HTTP proxy may need to be specified. "},
|
||||
{"When.connecting.from.behind.a.firewall.an.HTTP.or.HTTPS.proxy.may.need.to.be.specified.",
|
||||
"When connecting from behind a firewall an HTTP or HTTPS proxy may need to be specified. "},
|
||||
{"Supply.the.following.options.to.jarsigner.",
|
||||
"Supply the following options to jarsigner: "},
|
||||
{"or", "or"},
|
||||
{"Certificate.not.found.for.alias.alias.must.reference.a.valid.KeyStore.entry.containing.an.X.509.public.key.certificate.for.the",
|
||||
"Certificate not found for: {0}. {1} must reference a valid KeyStore entry containing an X.509 public key certificate for the Timestamping Authority."},
|
||||
{"using.an.alternative.signing.mechanism",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user