R/certificates.R
certificates.Rd
Get list of certificate and their metadata, or a single certificate
as.certificate(x)
certificates(page = 1, per_page = 25, ...)
certificate(id, ...)
certificate_create(
name,
type,
private_key = NULL,
leaf_certificate = NULL,
certificate_chain = NULL,
dns_names = NULL,
...
)
Object to coerce to an certificate
Page to return. Default: 1.
Number of results per page. Default: 25.
Additional arguments passed down to low-level API function
(do_*
)
(numeric) certificate id
(character) a certificate name
(character) a string representing the type of certificate. The value should be "custom" for a user-uploaded certificate or "lets_encrypt" for one automatically generated with Let's Encrypt. If not provided, "custom" will be assumed by default.
(character) the contents of a PEM-formatted private-key corresponding to the SSL certificate
(character) the contents of a PEM-formatted public SSL certificate
(character) the full PEM-formatted trust chain between the certificate authority's certificate and your domain's SSL certificate
(character) a vector of fully qualified domain names (FQDNs) for which the certificate will be issued. The domains must be managed using DigitalOcean's DNS
if (FALSE) {
# list certificates
certificates()
# create a certificate (create a fake domain first)
d <- domain_create('tablesandchairsbunnies.stuff', '107.170.220.59')
certificate_create("mycert", "lets_encrypt",
dns_names = list('tablesandchairsbunnies.stuff'))
}