How to create a X509 certificate using Java?

前端 未结 2 730
广开言路
广开言路 2020-12-09 17:50

I want to create a X509 certificate using Java language and then extract public key from it.

I have searched the internet and found many code examples, but all of th

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-09 18:35

    Yes, with BouncyCastle, creating an X509 cert from 2 public keys (the key for the cert and the one for the CA) is done here.

    I turn the resulting certificate into PEM here.

提交回复
热议问题