提交 518bbfac 编写于 作者: W weijun

7028490: better suggestion for jarsigner when TSA is not accessible

Reviewed-by: mullan
上级 6c8c0405
...@@ -1238,10 +1238,13 @@ public class JarSigner { ...@@ -1238,10 +1238,13 @@ public class JarSigner {
// Provide a helpful message when TSA is beyond a firewall // Provide a helpful message when TSA is beyond a firewall
error(rb.getString("unable.to.sign.jar.") + error(rb.getString("unable.to.sign.jar.") +
rb.getString("no.response.from.the.Timestamping.Authority.") + 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.") + rb.getString("Supply.the.following.options.to.jarsigner.") +
"\n -J-Dhttp.proxyHost=<hostname> " + "\n -J-Dhttp.proxyHost=<hostname>" +
"\n -J-Dhttp.proxyPort=<portnumber> ", e); "\n -J-Dhttp.proxyPort=<portnumber>\n" +
rb.getString("or") +
"\n -J-Dhttps.proxyHost=<hostname> " +
"\n -J-Dhttps.proxyPort=<portnumber> ", e);
} }
sfFilename = sf.getMetaName(); sfFilename = sf.getMetaName();
......
...@@ -182,10 +182,11 @@ public class JarSignerResources extends java.util.ListResourceBundle { ...@@ -182,10 +182,11 @@ public class JarSignerResources extends java.util.ListResourceBundle {
{"TSA.certificate.", "TSA certificate: "}, {"TSA.certificate.", "TSA certificate: "},
{"no.response.from.the.Timestamping.Authority.", {"no.response.from.the.Timestamping.Authority.",
"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.an.HTTP.or.HTTPS.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. "},
{"Supply.the.following.options.to.jarsigner.", {"Supply.the.following.options.to.jarsigner.",
"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.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."}, "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", {"using.an.alternative.signing.mechanism",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册