I would like to manage CA certs from Java code rather than using the command line keytool
command. This only needs to work on Windows.
I'm currently working round this by invoking the keytool command itself with Runtime.getRuntime().exec(myKeytoolCommandString)
but it smells clumsy.
I seems that behind the scenes keytool uses sun.security.tools.KeyTool but this class doesn't appear to be part of the public API and I cant seem to find any legit documentation for it. I have had a quick look at the third-party BouncyCastle library but as a newby to cryptography am not sure if is a suitable solution, any in any case would prefer to minimise dependencies.
Grateful for any recommendations.