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 1) Imported Certificate - CERTIFICATE_CREATE_IMPORTED 2) Certificate Signing Request - CERTIFICATE_CREATE_CSR 3) Imported Certificate Signing Request - CERTIFICATE_CREATE_IMPORTED_CSR 4) 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. .. examples(websocket):: Create an ACME based certificate :::javascript { "id": "6841f242-840a-11e6-a437-00e04d680384", "msg": "method", "method": "certificate.create", "params": [{ "tos": true, "csr_id": 1, "acme_directory_uri": "https://acme-staging-v02.api.letsencrypt.org/directory", "name": "acme_certificate", "dns_mapping": { "domain1.com": "1" }, "create_type": "CERTIFICATE_CREATE_ACME" }] } Create an Imported Certificate Signing Request :::javascript { "id": "6841f242-840a-11e6-a437-00e04d680384", "msg": "method", "method": "certificate.create", "params": [{ "name": "csr", "CSR": "CSR string", "privatekey": "Private key string", "create_type": "CERTIFICATE_CREATE_IMPORTED_CSR" }] } .. raw:: html
Must be at least 1
characters long
Must be at most 120
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
ACME directory URI to be used for ACME certificate creation.
Must be at least 1
characters long
CSR to be used for ACME certificate creation.
Set this when creating an ACME certificate to accept terms of service of the ACME service.
A 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: integerNumber 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
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long