[jdk11u-dev] RFR: 8257722: Improve "keytool -printcert -jarfile" output

Goetz Lindenmaier goetz at openjdk.org
Fri Nov 4 07:55:30 UTC 2022


On Thu, 3 Nov 2022 08:39:30 GMT, Goetz Lindenmaier <goetz at openjdk.org> wrote:

> I backport this for parity with 11.0.18-oracle.
> 
> src/java.base/share/classes/sun/security/tools/keytool/Main.java
> had to be resolved:
> In 11, x.getSubjectDN() is printed to 'out'. In the original
> change and in 17, x.getSubjectX500Principal() is printed in this
> place.
> This is because "8241003: Deprecate "denigrated" java.security.cert APIs that represent DNs as Principal or String objects" is not in 11.
> 
> I also had to resolve 
> src/java.base/share/classes/sun/security/tools/keytool/Resources.java
> due to context.

Thanks for the review!

-------------

PR: https://git.openjdk.org/jdk11u-dev/pull/1495


More information about the jdk-updates-dev mailing list