Certificate Certificate Certificate Certificate Certificate Class

Definition

Represents a cryptography certificate.

public : sealed class Certificate : ICertificate, ICertificate2, ICertificate3
struct winrt::Windows::Security::Cryptography::Certificates::Certificate : ICertificate, ICertificate2, ICertificate3
public sealed class Certificate : ICertificate, ICertificate2, ICertificate3
Public NotInheritable Class Certificate Implements ICertificate, ICertificate2, ICertificate3
var certificate = new certificate(certBlob);
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

Certificate(IBuffer) Certificate(IBuffer) Certificate(IBuffer) Certificate(IBuffer) Certificate(IBuffer)

Create a new instance of the Certificate class using the specified certificate data.

Properties

EnhancedKeyUsages EnhancedKeyUsages EnhancedKeyUsages EnhancedKeyUsages EnhancedKeyUsages

Gets a collection of object identifiers (OIDs) for the enhanced key usage extension.

FriendlyName FriendlyName FriendlyName FriendlyName FriendlyName

Gets or sets the friendly name for the certificate.

HasPrivateKey HasPrivateKey HasPrivateKey HasPrivateKey HasPrivateKey

Gets a value indicating whether the certificate has a private key.

IsPerUser IsPerUser IsPerUser IsPerUser IsPerUser

Gets whether the certificate is per-user.

IsSecurityDeviceBound IsSecurityDeviceBound IsSecurityDeviceBound IsSecurityDeviceBound IsSecurityDeviceBound

Gets whether the security device is bound.

IsStronglyProtected IsStronglyProtected IsStronglyProtected IsStronglyProtected IsStronglyProtected

Gets a value that indicates whether the private key associated with the certificate is strongly protected.

Issuer Issuer Issuer Issuer Issuer

Gets the name of the certificate issuer.

KeyAlgorithmName KeyAlgorithmName KeyAlgorithmName KeyAlgorithmName KeyAlgorithmName

Gets the name of the cryptographic algorithm used to create the key.

KeyStorageProviderName KeyStorageProviderName KeyStorageProviderName KeyStorageProviderName KeyStorageProviderName

Gets the certificate's key storage provider name.

KeyUsages KeyUsages KeyUsages KeyUsages KeyUsages

Gets the key uses for the certificate.

SerialNumber SerialNumber SerialNumber SerialNumber SerialNumber

Gets the serial number of the certificate.

SignatureAlgorithmName SignatureAlgorithmName SignatureAlgorithmName SignatureAlgorithmName SignatureAlgorithmName

Gets the signature algorithm name.

SignatureHashAlgorithmName SignatureHashAlgorithmName SignatureHashAlgorithmName SignatureHashAlgorithmName SignatureHashAlgorithmName

Gets the signature hash algorithm name.

StoreName StoreName StoreName StoreName StoreName

Gets the certificate's store name.

Subject Subject Subject Subject Subject

Gets the subject name of the certificate.

SubjectAlternativeName SubjectAlternativeName SubjectAlternativeName SubjectAlternativeName SubjectAlternativeName

Gets info on the subject alternative name.

ValidFrom ValidFrom ValidFrom ValidFrom ValidFrom

Gets the date and time after which the certificate is valid.

ValidTo ValidTo ValidTo ValidTo ValidTo

Gets the date and time after which the certificate is no longer valid.

Methods

BuildChainAsync(IIterable<Certificate>) BuildChainAsync(IIterable<Certificate>) BuildChainAsync(IIterable<Certificate>) BuildChainAsync(IIterable<Certificate>) BuildChainAsync(IIterable<Certificate>)

Build a certificate chain for the specified certificates starting from the end entity certificate to the root.

BuildChainAsync(IIterable<Certificate>, ChainBuildingParameters) BuildChainAsync(IIterable<Certificate>, ChainBuildingParameters) BuildChainAsync(IIterable<Certificate>, ChainBuildingParameters) BuildChainAsync(IIterable<Certificate>, ChainBuildingParameters) BuildChainAsync(IIterable<Certificate>, ChainBuildingParameters)

Build a certificate chain for the specified certificates starting from the end entity certificate to the root using the specified chain building parameters.

GetCertificateBlob() GetCertificateBlob() GetCertificateBlob() GetCertificateBlob() GetCertificateBlob()

Gets the ASN.1 DER encoded certificate blob.

GetHashValue() GetHashValue() GetHashValue() GetHashValue() GetHashValue()

Gets the SHA1 hash value for the certificate.

GetHashValue(String) GetHashValue(String) GetHashValue(String) GetHashValue(String) GetHashValue(String)

Gets the hash value for the certificate for a specified algorithm.