Skip to content

Incorrect example in CheckSignature(X509Certificate2Collection, Boolean)  #2790

Open
@Crunchie

Description

@Crunchie

The example for CheckSignature(X509Certificate2Collection, Boolean) in the System.Security.Cryptography.Pkcs/SignedCms.xml section uses the same code as the previous method (CheckSignature(Boolean))
The examples for both methods link to ~/samples/snippets/csharp/VS_Snippets_WindowsServer/mpkcs_SignedCMS/cs/Program.cs#1) which is an example for CheckSignature(Boolean). There does not appear to be an example for CheckSignature(X509Certificate2Collection, Boolean) in the samples repo.

I think the fix is to first add the example to the samples repo, then point this documentation to that sample

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityarea-System.SecurityIssues related to security practices for .NET developers.doc-bugProblem with the content; needs to be fixedexample-requestIndicates issues requesting samples

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions