You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code inside X509ExtensionUtils to create the authorityKeyIdentifier is incorrect. It takes in the signing CA cert and adds the GeneralName as the issuer of the CA whereas it should be the subject of the CA.
public AuthorityKeyIdentifier createAuthorityKeyIdentifier(
X509CertificateHolder certHolder)
{
GeneralName genName = new GeneralName(certHolder.getIssuer());
return new AuthorityKeyIdentifier(
getSubjectKeyIdentifier(certHolder), new GeneralNames(genName), certHolder.getSerialNumber());
}
The text was updated successfully, but these errors were encountered:
The code inside X509ExtensionUtils to create the authorityKeyIdentifier is incorrect. It takes in the signing CA cert and adds the GeneralName as the issuer of the CA whereas it should be the subject of the CA.
Here's the spec: https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.1
The authority key identifier in this case is identifying the signer of the CA and not the CA.
https://github.com/bcgit/bc-java/blob/main/pkix/src/main/java/org/bouncycastle/cert/X509ExtensionUtils.java#L42
The text was updated successfully, but these errors were encountered: