Only x509 certificates v3 allowed for CMP #692
-
Hi all, I've setup CMP endoint with EndEntityCertificate authentication module and use certificates from external CA for authentication. These certificates are generated with x509 version 1. I get the following error from EndEntityCertificateAuthenticationModule:
I seems to be coming from Bouncy castle: https://github.com/chenpanyu/tools/blob/master/bouncycastle/src/main/java/org/bouncycastle/asn1/cmp/CMPCertificate.java#L50. Is this expected behavior? Is there any way how to overcome the issues to make it work with certificates version 1? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I believe you should look at the application that produces anything else than v3 certificates. X.509 v1 was deprecated 30 years ago, generating v1 certificates will cause unimaginable trouble. Most applications and standard only support X.509 v3. I haven't seen anything generate non v3 certificates since the early 90s. Such certificates can not be used by TLS or most signature applications because they require extensions such as KeyUsage or SubjectAlternativeName, etc. V1 certificates can only be consumed by custom applications and are thus not suitable for usage with CMP. In the case of CMP the standard defines the usage of x509v3 certificate. In RFC5280, the only certificate version number required to be recognized by an application is v3(2): If you don't mind me asking, what kind of External CA generate v1 certificates? Here's the official BC source btw: https://github.com/bcgit/bc-java/blob/main/util/src/main/java/org/bouncycastle/asn1/cmp/CMPCertificate.java#L52 Cheers, |
Beta Was this translation helpful? Give feedback.
I believe you should look at the application that produces anything else than v3 certificates. X.509 v1 was deprecated 30 years ago, generating v1 certificates will cause unimaginable trouble. Most applications and standard only support X.509 v3.
I haven't seen anything generate non v3 certificates since the early 90s. Such certificates can not be used by TLS or most signature applications because they require extensions such as KeyUsage or SubjectAlternativeName, etc. V1 certificates can only be consumed by custom applications and are thus not suitable for usage with CMP.
In the case of CMP the standard defines the usage of x509v3 certificate.
https://datatracker.ietf.org/doc/html/rfc421…