Skip to main content

Certificate

Properties

PropertyTypeAttributesDescription
namestringRequired, IdentifierThe name of the certificate in KeyVault.
attributesCertificateAttributesCertificate attributes.
certificateAttributesCertificateAttributeOutputsRead-onlyRead-only attributes of the certificate as reported by KeyVault.
certificateDatastringRead-onlyThe raw DER-encoded certificate, as a lower-case hexadecimal string.
certificateDataBase64stringRead-onlyThe raw DER-encoded certificate, as a base64-encoded string.
idstringRead-onlyThe versioned URI of the certificate.
importCertificateImportAn existing certificate to import. Mutually exclusive with the policy properties ('key', 'secret', 'x509Properties', 'issuer', 'lifetimeActions').
issuerCertificateIssuerParametersCertificate issuer information.
keyCertificateKeyPropertiesKey properties for the certificate.
keyIdstringRead-onlyThe versioned URI of the KeyVault key backing the certificate.
lifetimeActionsLifetimeAction[]Lifetime actions for the certificate.
secretCertificateSecretPropertiesSecret properties for the certificate.
secretIdstringRead-onlyThe versioned URI of the KeyVault secret backing the certificate.
tagsDictionary<string, String>Tags to apply to the certificate.
thumbprintstringRead-onlyThe X.509 SHA-1 thumbprint of the certificate, as an upper-case hexadecimal string.
vaultUristringIdentifierThe URI of the Key Vault holding the certificate. Defaults to the 'vaultUri' supplied in the extension configuration.
versionstringRead-onlyThe version of the certificate.
versionlessIdstringRead-onlyThe URI of the certificate, without a version. Use this to always resolve the latest version.
versionlessSecretIdstringRead-onlyThe URI of the KeyVault secret backing the certificate, without a version.
x509PropertiesX509PropertiesX.509 certificate properties.

CertificateAttributes

PropertyTypeAttributesDescription
enabledboolWhether the certificate is enabled.

CertificateAttributeOutputs

PropertyTypeAttributesDescription
createdstringRead-onlyThe UTC date/time at which the certificate was created, in ISO 8601 format.
enabledboolRead-onlyWhether the certificate is enabled.
expiresstringRead-onlyThe UTC date/time at which the certificate expires, in ISO 8601 format.
notBeforestringRead-onlyThe UTC date/time before which the certificate cannot be used, in ISO 8601 format.
recoveryLevelstringRead-onlyThe deletion recovery level currently in effect for the certificate.
updatedstringRead-onlyThe UTC date/time at which the certificate was last updated, in ISO 8601 format.

CertificateImport

PropertyTypeAttributesDescription
contentsstringRequired, SensitiveThe base64-encoded contents of the certificate to import. May be a PFX or a PEM bundle.
passwordstringSensitiveThe password protecting the certificate contents, if any.

CertificateIssuerParameters

PropertyTypeAttributesDescription
namestringRequiredThe name of the issuer. Use 'Self' for a self-signed certificate, 'Unknown' for a certificate signed by an external CA, or the name of a 'CertificateIssuer' resource.
certificateTransparencyboolWhether certificate transparency is enabled.
certificateTypestringThe type of certificate to request from the issuer.

CertificateKeyProperties

PropertyTypeAttributesDescription
curvestringThe curve type for elliptic curve keys. One of 'P-256', 'P-256K', 'P-384' or 'P-521'.
exportableboolWhether the key is exportable.
keySizeintThe size of the key. Required for RSA keys, e.g. 2048, 3072 or 4096.
keyTypestringThe type of key. One of 'RSA', 'RSA-HSM', 'EC', 'EC-HSM' or 'oct'.
reuseKeyboolWhether to reuse the key when the certificate is renewed.

LifetimeAction

PropertyTypeAttributesDescription
actionLifetimeActionActionRequiredThe action to perform.
triggerLifetimeActionTriggerRequiredThe trigger for the lifetime action.

CertificateSecretProperties

PropertyTypeAttributesDescription
contentTypestringThe content type of the secret backing the certificate. Either 'application/x-pkcs12' or 'application/x-pem-file'.

Dictionary<string, String>

Additional properties of type string are allowed.

X509Properties

PropertyTypeAttributesDescription
ekusstring[]Enhanced key usage extensions, as OIDs, e.g. '1.3.6.1.5.5.7.3.1'.
keyUsagestring[]Key usage extensions, e.g. 'digitalSignature'.
subjectstringThe subject name of the certificate, e.g. 'CN=contoso.com'.
subjectAlternativeNamesSubjectAlternativeNamesSubject alternative names.
validityInMonthsintValidity period in months.

LifetimeActionAction

PropertyTypeAttributesDescription
actionTypestringRequiredThe type of action to perform. Either 'AutoRenew' or 'EmailContacts'.

LifetimeActionTrigger

PropertyTypeAttributesDescription
daysBeforeExpiryintDays before expiry at which to trigger the action. Cannot be combined with 'lifetimePercentage'.
lifetimePercentageintPercentage of the certificate lifetime at which to trigger the action. Must be between 1 and 99, and cannot be combined with 'daysBeforeExpiry'.

SubjectAlternativeNames

PropertyTypeAttributesDescription
dnsNamesstring[]DNS names in the certificate.
emailsstring[]Email addresses in the certificate.
upnsstring[]User principal names in the certificate.