CertificateStores CertificateStores CertificateStores CertificateStores Class

Definition

Represents a collection of certificate stores.

public : static class CertificateStores
public static class CertificateStores
Public Static Class CertificateStores
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

IntermediateCertificationAuthorities IntermediateCertificationAuthorities IntermediateCertificationAuthorities IntermediateCertificationAuthorities

Gets the certificate store of intermediate certification authorities for an app.

public : static CertificateStore IntermediateCertificationAuthorities { get; }
public static CertificateStore IntermediateCertificationAuthorities { get; }
Public Static ReadOnly Property IntermediateCertificationAuthorities As CertificateStore
var certificateStore = Windows.Security.Cryptography.Certificates.CertificateStores.intermediateCertificationAuthorities;
Value
CertificateStore CertificateStore CertificateStore CertificateStore

The certificate store of intermediate certification authorities for an app.

TrustedRootCertificationAuthorities TrustedRootCertificationAuthorities TrustedRootCertificationAuthorities TrustedRootCertificationAuthorities

Gets the certificate store of trusted root certificates for an app.

public : static CertificateStore TrustedRootCertificationAuthorities { get; }
public static CertificateStore TrustedRootCertificationAuthorities { get; }
Public Static ReadOnly Property TrustedRootCertificationAuthorities As CertificateStore
var certificateStore = Windows.Security.Cryptography.Certificates.CertificateStores.trustedRootCertificationAuthorities;
Value
CertificateStore CertificateStore CertificateStore CertificateStore

The certificate store of trusted root certificates for an app.

Methods

FindAllAsync() FindAllAsync() FindAllAsync() FindAllAsync()

Get all certificates from the certificate stores.

public : static IAsyncOperation<IVectorView<Certificate>> FindAllAsync()
public static IAsyncOperation<IReadOnlyList<Certificate>> FindAllAsync()
Public Static Function FindAllAsync() As IAsyncOperation<IReadOnlyList<Certificate>>( Of IVectorView )
var iAsyncOperation = Windows.Security.Cryptography.Certificates.CertificateStores.findAllAsync();
Returns
IAsyncOperation<IVectorView<Certificate>> IAsyncOperation<IReadOnlyList<Certificate>> IAsyncOperation<IReadOnlyList<Certificate>> IAsyncOperation<IReadOnlyList<Certificate>>

An asynchronous operation to retrieve the list of certificates.

Remarks

The FindAllAsync method filters the resulting list of certificates and removes duplicates, showing only the most recent certificate when duplicates are found. This only occurs if the app is running in an app container. Duplicate certificates are certificates that have the same subject and issuer.

Expired certificates are not returned in the list of certificates.

See Also

FindAllAsync(CertificateQuery) FindAllAsync(CertificateQuery) FindAllAsync(CertificateQuery) FindAllAsync(CertificateQuery)

Get all certificates from the certificate stores that match the specified query parameters.

public : static IAsyncOperation<IVectorView<Certificate>> FindAllAsync(CertificateQuery query)
public static IAsyncOperation<IReadOnlyList<Certificate>> FindAllAsync(CertificateQuery query)
Public Static Function FindAllAsync(query As CertificateQuery) As IAsyncOperation<IReadOnlyList<Certificate>>( Of IVectorView )
var iAsyncOperation = Windows.Security.Cryptography.Certificates.CertificateStores.findAllAsync(query);
Parameters
query
CertificateQuery CertificateQuery CertificateQuery CertificateQuery

The certificate values to search for.

Returns
IAsyncOperation<IVectorView<Certificate>> IAsyncOperation<IReadOnlyList<Certificate>> IAsyncOperation<IReadOnlyList<Certificate>> IAsyncOperation<IReadOnlyList<Certificate>>

An asynchronous operation to retrieve the list of certificates.

Remarks

The FindAllAsync method filters the resulting list of certificates and removes duplicates, showing only the most recent certificate when duplicates are found. This only occurs if the app is running in an app container. Duplicate certificates are certificates that have the same subject and issuer.

Expired certificates are not returned in the list of certificates.

See Also

GetStoreByName(String) GetStoreByName(String) GetStoreByName(String) GetStoreByName(String)

Gets a certificate store from the collection of certificate stores by name.

public : static CertificateStore GetStoreByName(Platform::String storeName)
public static CertificateStore GetStoreByName(String storeName)
Public Static Function GetStoreByName(storeName As String) As CertificateStore
var certificateStore = Windows.Security.Cryptography.Certificates.CertificateStores.getStoreByName(storeName);
Parameters
storeName
Platform::String String String String

The name of the certificate store to return. The storeName parameter value cannot be "MY".

Returns

GetUserStoreByName(String) GetUserStoreByName(String) GetUserStoreByName(String) GetUserStoreByName(String)

Gets a user certificate store from the collection of certificate stores by name.

public : static UserCertificateStore GetUserStoreByName(Platform::String storeName)
public static UserCertificateStore GetUserStoreByName(String storeName)
Public Static Function GetUserStoreByName(storeName As String) As UserCertificateStore
var userCertificateStore = Windows.Security.Cryptography.Certificates.CertificateStores.getUserStoreByName(storeName);
Parameters
storeName
Platform::String String String String

The name of the user certificate store to return.

Returns
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)