certificates
Overview
Name | certificates |
Type | Resource |
Id | digitalocean.certificates.certificates |
Fields
Name | Datatype | Description |
---|---|---|
id | string | A unique ID that can be used to identify and reference a certificate. |
name | string | A unique human-readable name referring to a certificate. |
created_at | string | A time value given in ISO8601 combined date and time format that represents when the certificate was created. |
dns_names | array | An array of fully qualified domain names (FQDNs) for which the certificate was issued. |
not_after | string | A time value given in ISO8601 combined date and time format that represents the certificate's expiration date. |
sha1_fingerprint | string | A unique identifier generated from the SHA-1 fingerprint of the certificate. |
state | string | A string representing the current state of the certificate. It may be pending , verified , or error . |
type | string | A string representing the type of the certificate. The value will be custom for a user-uploaded certificate or lets_encrypt for one automatically generated with Let's Encrypt. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | certificate_id | To show information about an existing certificate, send a GET request to /v2/certificates/$CERTIFICATE_ID . |
list | SELECT | To list all of the certificates available on your account, send a GET request to /v2/certificates . | |
create | INSERT | To upload new SSL certificate which you have previously generated, send a POST request to /v2/certificates .When uploading a user-generated certificate, the private_key ,leaf_certificate , and optionally the certificate_chain attributes shouldbe provided. The type must be set to custom .When using Let's Encrypt to create a certificate, the dns_names attributemust be provided, and the type must be set to lets_encrypt . | |
delete | DELETE | certificate_id | To delete a specific certificate, send a DELETE request to/v2/certificates/$CERTIFICATE_ID . |
_get | EXEC | certificate_id | To show information about an existing certificate, send a GET request to /v2/certificates/$CERTIFICATE_ID . |
_list | EXEC | To list all of the certificates available on your account, send a GET request to /v2/certificates . |