certificate.create¶
Create a new Certificate
Certificates are classified under following types and the necessary keywords to be passed for create_type attribute to create the respective type of certificate
Imported Certificate - CERTIFICATE_CREATE_IMPORTED
Certificate Signing Request - CERTIFICATE_CREATE_CSR
Imported Certificate Signing Request - CERTIFICATE_CREATE_IMPORTED_CSR
ACME Certificate - CERTIFICATE_CREATE_ACME
By default, created CSRs use RSA keys. If an Elliptic Curve Key is desired, it can be specified with the key_type attribute. If the ec_curve attribute is not specified for the Elliptic Curve Key, then default to using “SECP384R1” curve.
A type is selected by the Certificate Service based on create_type. The rest of the values in data are validated accordingly and finally a certificate is made based on the selected type.
cert_extensions can be specified to set X509v3 extensions.
No Additional Items
Tuple Validation
Parameter 1: certificate_create
certificate_create
Type: objectNo Additional Properties
Name
Type: stringMust be at least 1
characters long
Must be at most 120
characters long
Create Type
Type: enum (of string)Must be one of:
- "CERTIFICATE_CREATE_IMPORTED"
- "CERTIFICATE_CREATE_CSR"
- "CERTIFICATE_CREATE_IMPORTED_CSR"
- "CERTIFICATE_CREATE_ACME"
Add To Trusted Store
Type: boolean Default: falseCertificate
Default: nullMust be at least 1
characters long
Privatekey
Default: nullMust be at least 1
characters long
Csr
Default: nullMust be at least 1
characters long
Key Length
Default: nullMust be one of:
- 2048
- 4096
Key Type
Type: enum (of string) Default: "RSA"Must be one of:
- "RSA"
- "EC"
Ec Curve
Type: enum (of string) Default: "SECP384R1"Must be one of:
- "SECP256R1"
- "SECP384R1"
- "SECP521R1"
- "ed25519"
Passphrase
Default: nullMust be at least 1
characters long
City
Default: nullMust be at least 1
characters long
Common
Default: nullMust be at least 1
characters long
Country
Default: nullMust be at least 1
characters long
Organization
Default: nullMust be at least 1
characters long
Organizational Unit
Default: nullMust be at least 1
characters long
State
Default: nullMust be at least 1
characters long
Digest Algorithm
Type: enum (of string) Default: "SHA256"Must be one of:
- "SHA224"
- "SHA256"
- "SHA384"
- "SHA512"
San
Type: array of stringNo Additional Items
Each item of this array must be:
Must be at least 1
characters long
CertificateExtensions
Type: objectNo Additional Properties
BasicConstraintsModel
Type: objectNo Additional Properties
Ca
Type: boolean Default: falseEnabled
Type: boolean Default: falsePath Length
Default: nullExtension Critical
Type: boolean Default: falseExtendedKeyUsageModel
Type: objectNo Additional Properties
Usages
Type: array of enum (of string)No Additional Items
Each item of this array must be:
Must be one of:
- "ANY_EXTENDED_KEY_USAGE"
- "CERTIFICATE_TRANSPARENCY"
- "CLIENT_AUTH"
- "CODE_SIGNING"
- "EMAIL_PROTECTION"
- "IPSEC_IKE"
- "KERBEROS_PKINIT_KDC"
- "OCSP_SIGNING"
- "SERVER_AUTH"
- "SMARTCARD_LOGON"
- "TIME_STAMPING"
Enabled
Type: boolean Default: falseExtension Critical
Type: boolean Default: falseKeyUsageModel
Type: objectNo Additional Properties
Enabled
Type: boolean Default: falseDigital Signature
Type: boolean Default: falseContent Commitment
Type: boolean Default: falseKey Encipherment
Type: boolean Default: falseData Encipherment
Type: boolean Default: falseKey Agreement
Type: boolean Default: falseKey Cert Sign
Type: boolean Default: falseCrl Sign
Type: boolean Default: falseEncipher Only
Type: boolean Default: falseDecipher Only
Type: boolean Default: falseExtension Critical
Type: boolean Default: falseAcme Directory Uri
Default: nullACME directory URI to be used for ACME certificate creation.
Must be at least 1
characters long
Csr Id
Default: nullCSR to be used for ACME certificate creation.
Tos
Default: nullSet this when creating an ACME certificate to accept terms of service of the ACME service.
Dns Mapping
Type: objectA mapping of domain to ACME DNS Authenticator ID for each domain listed in SAN or common name of the CSR.
Each additional property must conform to the following schema
Type: integerRenew Days
Type: integer Default: 10Number of days before the certificate expiration date to attempt certificate renewal. If certificate renewal fails,
renewal will be reattempted every day until expiration.
Value must be greater or equal to 1
and lesser or equal to 30
CertificateEntry
Type: objectNo Additional Properties
Id
Type: integerType
Type: integerName
Type: stringMust be at least 1
characters long
Certificate
Privatekey
Csr
Acme Uri
Domains Authenticators
Renew Days
Acme
Add To Trusted Store
Type: booleanRoot Path
Type: stringMust be at least 1
characters long
Certificate Path
Must be at least 1
characters long
Privatekey Path
Must be at least 1
characters long
Csr Path
Must be at least 1
characters long
Cert Type
Type: stringMust be at least 1
characters long
Cert Type Existing
Type: booleanCert Type Csr
Type: booleanChain List
Type: array of stringNo Additional Items
Each item of this array must be:
Key Length
Key Type
Must be at least 1
characters long
Country
State
City
Organization
Organizational Unit
Common
San
No Additional Items
Each item of this array must be:
Dn
Subject Name Hash
Extensions
Type: objectDigest Algorithm
Lifetime
From
Until
Serial
Chain
Fingerprint
Expired
Parsed
Type: booleanRequired roles: CERTIFICATE_WRITE