Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize openssl issuer and subject #614

Merged
merged 1 commit into from
Jun 18, 2021
Merged

Conversation

ekohl
Copy link
Contributor

@ekohl ekohl commented Jun 18, 2021

In OpenSSL < 1.1 (as found on EL7 and older distros) the output was:

issuer=/C=US/O=Let's Encrypt/CN=R3

In OpenSSL >= 1.1 (as found on EL8 and newer distros) the output is:

issuer=C = US, O = Let's Encrypt, CN = R3

This normalizes the output to the old pre-1.1 style. This makes it easier to write a test that should pass on both platforms.

The downside of this is that we're normalizing to an older output format, but that makes backwards compatiblity easier. An alternative is to introduce new helpers that are normalized. It may also be a chance to thing you the DN should be presented as an array instead of a single string.

In OpenSSL < 1.1 (as found on EL7 and older distros) the output was:

    issuer=/C=US/O=Let's Encrypt/CN=R3

In OpenSSL >= 1.1 (as found on EL8 and newer distros) the output is:

    issuer=C = US, O = Let's Encrypt, CN = R3

This normalizes the output to the old pre-1.1 style. This makes it
easier to write a test that should pass on both platforms.
@mizzy
Copy link
Owner

mizzy commented Jun 18, 2021

Thanks!

@mizzy mizzy merged commit 851b6c0 into mizzy:master Jun 18, 2021
@mizzy
Copy link
Owner

mizzy commented Jun 18, 2021

Released as v2.41.6.

@ekohl ekohl deleted the normalize-openssl branch June 19, 2021 14:30
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.

2 participants