<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.18.0" />

Microsoft.IdentityModel.Tokens.X509SigningCredentials

Defines the X509Certificate2, algorithm and digest for digital signatures.
public X509Certificate2 Certificate { get; }

Gets the X509Certificate2 used by this instance.

Initializes a new instance of the X509SigningCredentials class.

public X509SigningCredentials(X509Certificate2 certificate, string algorithm)

Initializes a new instance of the X509SigningCredentials class.