Skip to content

Ignore X509_V_ERR_AKID_SKID_MISMATCH - #67343

Closed
vcsjones wants to merge 1 commit into
dotnet:mainfrom
vcsjones:fix-67304
Closed

vcsjones wants to merge 1 commit into
dotnet:mainfrom
vcsjones:fix-67304

Conversation

@vcsjones

Copy link
Copy Markdown
Member

OpenSSL 3 started reporting X509_V_ERR_AKID_SKID_MISMATCH when building an X.509 chain that had mismatched AKID/SKIDs.
Previously, this resulted in a PartialChain. This changes the verify callback to ignore X509_V_ERR_AKID_SKID_MISMATCH, and let PartialChain be what ends up getting reported. This is consistent with OpenSSL 1.x.

Closes #67304

OpenSSL 3 started reporting X509_V_ERR_AKID_SKID_MISMATCH when building an X.509 chain that had mismatched AKID/SKIDs.
Previously, this resulted in a PartialChain. This changes the verify callback to ignore X509_V_ERR_AKID_SKID_MISMATCH,
and let PartialChain be what ends up getting reported. This is consistent with OpenSSL 1.x.
@ghost ghost added the area-System.Security label Mar 30, 2022
@ghost ghost assigned vcsjones Mar 30, 2022
@ghost

ghost commented Mar 30, 2022

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/area-system-security, @vcsjones
See info in area-owners.md if you want to be subscribed.

Issue Details

OpenSSL 3 started reporting X509_V_ERR_AKID_SKID_MISMATCH when building an X.509 chain that had mismatched AKID/SKIDs.
Previously, this resulted in a PartialChain. This changes the verify callback to ignore X509_V_ERR_AKID_SKID_MISMATCH, and let PartialChain be what ends up getting reported. This is consistent with OpenSSL 1.x.

Closes #67304

Author: vcsjones
Assignees: -
Labels:

area-System.Security

Milestone: -

@omajid

omajid commented Mar 30, 2022

Copy link
Copy Markdown
Member

Does this affect 6.0 as well? Will we (or should we) backport the fix?

@vcsjones

vcsjones commented Mar 30, 2022 •

Copy link
Copy Markdown
Member Author

Does this affect 6.0 as well?

Possibly.

Will we (or should we) backport the fix?

As someone who has absolutely no authority on back porting, I think we should, if anything so that our release/6.0 tests don't assert if / when they start running on Ubuntu 22.04.

@omajid

omajid commented Mar 30, 2022

Copy link
Copy Markdown
Member

so that our tests don't assert if / when they start running on Ubuntu 22.04.

I am running tests with the 6.0 branch too on RHEL 9 (OpenSSL 3.0). For some reason, I don't see a test failure there. The test error only appears on main.

@vcsjones

Copy link
Copy Markdown
Member Author

Hm. I wonder if this is another result of #65860. Let me see if that PR introduced this regression.

@omajid

omajid commented Mar 30, 2022

Copy link
Copy Markdown
Member

For some reason, I don't see a test failure there. The test error only appears on main.

That was a PEBKAC. I was building tests, but not running them 🤦

@vcsjones

Copy link
Copy Markdown
Member Author

@omajid actually I think you are right, this doesn't reproduce for me on 3f26873, but does 07eab2b. I think this is a recent regression against OpenSSL 3.0. I'm going to close this for now, as this might be fixing a symptom and not a root cause. I will re-open it pending discussion on the tracking issue.

@vcsjones vcsjones closed this Mar 30, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Apr 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unrecognized X509VerifyStatusCode:Interop+Crypto+X509VerifyStatusCode on RHEL 9/OpenSSL 3.0

2 participants