다음을 통해 공유


CertificatePolicy Class

Definition

A policy which governs the lifecycle a properties of a certificate managed by Azure Key Vault.

public class CertificatePolicy
type CertificatePolicy = class
Public Class CertificatePolicy
Inheritance
CertificatePolicy

Constructors

CertificatePolicy()

Initializes a new instance of the CertificatePolicy class to pass to ImportCertificate(ImportCertificateOptions, CancellationToken) or ImportCertificateAsync(ImportCertificateOptions, CancellationToken).

CertificatePolicy(String, String, SubjectAlternativeNames)

Initializes a new instance of the CertificatePolicy class.

CertificatePolicy(String, String)

Initializes a new instance of the CertificatePolicy class.

CertificatePolicy(String, SubjectAlternativeNames)

Initializes a new instance of the CertificatePolicy class.

Properties

CertificateTransparency

Gets or sets a value indicating whether a certificate should be published to the certificate transparency list when created.

CertificateType

Gets or sets the certificate type of a certificate.

ContentType

Gets or sets the CertificateContentType of the certificate.

CreatedOn

Gets a DateTimeOffset indicating when the certificate was created.

Default

Gets a new CertificatePolicy suitable for self-signed certificate requests with the Subject "CN=DefaultPolicy". To change the Subject, create a new instance using one of the constructors.

Enabled

Gets or sets a value indicating whether the certificate is currently enabled. If null, the server default will be used.

EnhancedKeyUsage

Gets the allowed enhanced key usages (EKUs) of the certificate.

Exportable

Gets or sets a value indicating whether the certificate key is exportable from the vault or secure certificate store.

IssuerName

Gets the name of an issuer for a certificate.

KeyCurveName

Gets or sets the curve which back an Elliptic Curve (EC) key.

KeySize

Gets or sets the size of the RSA key. The value must be a valid RSA key length such as 2048 or 4092.

KeyType

Gets or sets the type of backing key to be generated when issuing new certificates.

KeyUsage

Gets the allowed usages for the key of the certificate.

LifetimeActions

Gets the actions to be executed at specified times in the certificates lifetime. Currently, only a single LifetimeAction is allowed.

ReuseKey

Gets or sets a value indicating whether the certificate key should be reused when rotating the certificate.

Subject

Gets the subject name of a certificate.

SubjectAlternativeNames

Gets the subject alternative names (SANs) of a certificate.

UpdatedOn

Gets a DateTimeOffset indicating when the certificate was updated.

ValidityInMonths

Gets or sets the validity period for a certificate in months.

Applies to