ACME: remove Subject Common Name from CSR. #107
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Baseline Requirements discouraged the use of Subject commonName in Subscriber Certificates since v1.0 (2011). Certbot has been omitting the attribute from CSRs since v0.14.0 (2017).
There are valid reasons for this, including redundancy (subjectAltName is required, and Subject commonName MUST match one of the subjectAltName entries) and a 64 byte length limit. However, some very old HTTP clients and some not-so-old clients for other protocols (email) take exception to certificates without commonName.
Let's Encrypt now decided to aggressively encourage ACME clients to stop setting commonName as a part of their IP identifier support rollout with the following error:
We already attempt to pick a DNS name for CN, but that is not possible if the list of identifiers has only IP addresses. Let's just stop doing that and always send an empty Subject.
Fixes #105
Draft, because I'm still considering if we need to add an option for this. Most of my test servers don't perform CN promotion and issue certificates with an empty Subject.
Also, still testing.