问题
I am using the following API to fetch a certificate previously generated in EJBCA:
https://www.ejbca.org/older_releases/ejbca_4_0/htdocs/ws/org/ejbca/core/protocol/ws/client/gen/EjbcaWS.html#getCertificate(java.lang.String, java.lang.String)
The Private+public key was generated in the code, and hence I haven't persisted it anywhere.
While setting the user status ( "editUser" ) I've used https://www.ejbca.org/older_releases/ejbca_4_0/htdocs/ws/org/ejbca/core/protocol/ws/client/gen/UserDataVOWS.html#TOKEN_TYPE_P12
- How do I get the p12 certificate now? I'm getting the .crt file ( which has only the public key ).
- Does EJBCA persist the Private keys somewhere?
- Would the EJBCA Keystore be of help?
回答1:
You should use the pkcs12Req WS method to generate a server generated p12 file.
来源:https://stackoverflow.com/questions/35223358/fetch-pre-generated-p12-certificate-from-ejbca