Skip to content

[release/6.0] Ignore non-X509 certificates in SignedCms - #67462

Merged
carlossanlop merged 2 commits into
dotnet:release/6.0from
bartonjs:backport_64348
Apr 13, 2022
Merged

[release/6.0] Ignore non-X509 certificates in SignedCms #67462
carlossanlop merged 2 commits into
dotnet:release/6.0from
bartonjs:backport_64348

Conversation

@bartonjs

Copy link
Copy Markdown
Member

This is a backport of #64348 at the request of NuGet (cc @dtivel).

Customer Impact

.NET fails to understand RFC 3161 timestamps from Microsoft timestamping services, including Azure Code Signing timestamping. There is a risk that signed NuGet packages would fail to verify with such a timestamp.

Testing

Automated test included with the PR.

Risk

Low risk. This fix has been in dotnet/runtime:main for over 2 months.

This allows for AttributeCertificateV1/AttributeCertificateV2/OtherCertificate
entries in the SignedCms without causing a decode error. That data is not presented
to callers via the SignedCms object, but the behavior is consistent with SignedCms on
.NET Framework and its underlying WinCryptMsg counterpart.
@bartonjsbartonjs added Servicing-consider Issue for next servicing release review area-System.Security labels Apr 1, 2022
@bartonjsbartonjs added this to the 6.0.x milestone Apr 1, 2022
@ghostghost assigned bartonjsApr 1, 2022
@ghost

ghost commented Apr 1, 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

This is a backport of #64348 at the request of NuGet (cc @dtivel).

Customer Impact

.NET fails to understand RFC 3161 timestamps from Microsoft timestamping services, including Azure Code Signing timestamping. There is a risk that signed NuGet packages would fail to verify with such a timestamp.

Testing

Automated test included with the PR.

Risk

Low risk. This fix has been in dotnet/runtime:main for over 2 months.

Author:bartonjs
Assignees:-
Labels:

Servicing-consider, area-System.Security

Milestone:6.0.x

@leecowleecow added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Apr 5, 2022
@leecowleecow modified the milestones: 6.0.x, 6.0.5Apr 5, 2022
@carlossanlop
carlossanlop merged commit 7e2e3c9 into dotnet:release/6.0Apr 13, 2022
@ghostghost locked as resolved and limited conversation to collaborators May 13, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.SecurityServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@bartonjs@carlossanlop@leecow