We had a proposal for this at https://bugs.openjdk.org/browse/JDK-6539136 and
it's also withdrawn. I've added some comments to it. Keytool is quite different
from other tools because it's interactive and involves keystore and passwords.
Thanks,
Weijun
> On May 7, 2024, at 6:16 AM, Wojtek wrote
Hello,
Move to strongly encapsulate JDK internals (i.e. JEP-403 and 396) affected access to generating
self-signed certificates. JEP itself states:
> Code that uses the sun.security.tools.keytool.CertAndKeyGen class to generate self-signed
certificates. There is not yet a standard API for this