Skip to content

Fix(CmpUtils): Keep The RDN Order In The kur oldCertId Control - #87

Open
misiektoja wants to merge 2 commits into
siemens:mainfrom
misiektoja:fix/kur-old-cert-id-issuer
Open

misiektoja wants to merge 2 commits into
siemens:mainfrom
misiektoja:fix/kur-old-cert-id-issuer

Conversation

@misiektoja

@misiektoja misiektoja commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Description

prepare_old_cert_id_control now copies the issuer Name from the certificate. An issuer string passed by the caller is still parsed as before.

Motivation and Context

The function converted the issuer to an OpenSSL-style string and back, the same round trip that #84 removes from the CertTemplate code. A multi-RDN issuer came back reversed, so oldCertId identified no certificate (RFC 9483 Section 4.1.3).

How Has This Been Tested?

A new unit test compares the issuer DER for a multi-RDN certificate. It fails on main and passes with this change. A second test checks that changing the control does not change the certificate. It passes on both. Other unit test results match main. Python 3.15 with pytest 9.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant