hello ,how I can create custom certificate extension in java CSR request for ejbca so that it can reflect on certificate.pem, #669
-
I am trying to add below in certificate by msgbuilder.addExtension(new ASN1ObjectIdentifier("1.3.6.1.5.5.7.1.34"),false,nfTypes); but its not reflecting in certificate response.what changes should i do? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can add custom extensions in many ways. One is to use "Custom extensions" in EJBCA. Another is to use "Allow Extension Override" in the certificate profile, to copy extensions from your request into the issued certificate, if you prefer to do that. Nothing like that is copied from the CSR by default, without you explicitly allowing it. That would be an insecure default setting. |
Beta Was this translation helpful? Give feedback.
-
hi ,is there any java code available for Revoke request,? |
Beta Was this translation helpful? Give feedback.
You can add custom extensions in many ways. One is to use "Custom extensions" in EJBCA.
https://docs.keyfactor.com/ejbca/latest/custom-certificate-extensions
Another is to use "Allow Extension Override" in the certificate profile, to copy extensions from your request into the issued certificate, if you prefer to do that.
Nothing like that is copied from the CSR by default, without you explicitly allowing it. That would be an insecure default setting.