Fetch pre-generated p12 certificate from EJBCA

﹥>﹥吖頭↗ 提交于 2019-12-12 02:08:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!