Certificates

A Certificate is a way to store your custom SSL certificate for your Files.com site. Files.com is also capable of registering SSL certificates itself, so this is only required if you have specific security requirements to use your own certificate.

Resource Schema

Required

PropertyDescription
name
String
Descriptive name of certificate

Optional

PropertyDescription
certificate
String
Full text of SSL certificate
intermediates
String
Intermediate certificates
key_type
String
Type of key
certificate_domain
String
Domain for certificate.
certificate_extra_domains
List
Additional domains for the certificate CSR.
certificate_country
String
Country.
certificate_state_or_province
String
State or province.
certificate_city_or_locale
String
City or locale.
certificate_company_name
String
Company name.
csr_ou1
String
Department name or organization unit 1
csr_ou2
String
Department name or organization unit 2
csr_ou3
String
Department name or organization unit 3
certificate_email_address
String
Email address for the certificate owner.
private_key
String
Certificate private key.
password
String
Certificate password.

Read Only

PropertyDescription
id
Int64
Certificate ID
custom_domain_id
Int64
Custom Domain that owns this certificate, including while the certificate is inactive.
created_at
String
Certificate created at
display_status
String
Certificate status. (One of Request Generated, New, Active, Active/Expired, Expired, or Available)
domains
List
Domains on this certificate other than files.com domains
expires_at
String
Certificate expiration date/time
brick_managed
Bool
Is this certificate automatically managed and renewed by Files.com?
ip_addresses
List
A list of IP addresses associated with this SSL Certificate
issuer
String
X509 issuer
request
String
Certificate signing request text
status
String
Certificate status (Request Generated, New, Active, Active/Expired, Expired, or Available)
subject
String
X509 Subject name

Example Resource

resource "files_certificate" "example_certificate" {
  name                      = "Name"
  certificate_domain        = "domain.com"
  certificate_extra_domains = ["www.domain.com"]
  key_type                  = "RSA-4096"
  certificate               = "[certificate]"
  intermediates             = "[certificates]"
}

Resource Import

This Resource supports importing using the following syntax:

Example Import Command

# Certificates can be imported by specifying the id.
terraform import files_certificate.example_certificate 1

Data Source Schema

Required

PropertyDescription
id
Int64
Certificate ID

Read Only

PropertyDescription
name
String
Descriptive name of certificate
custom_domain_id
Int64
Custom Domain that owns this certificate, including while the certificate is inactive.
certificate
String
Full text of SSL certificate
created_at
String
Certificate created at
display_status
String
Certificate status. (One of Request Generated, New, Active, Active/Expired, Expired, or Available)
domains
List
Domains on this certificate other than files.com domains
expires_at
String
Certificate expiration date/time
brick_managed
Bool
Is this certificate automatically managed and renewed by Files.com?
intermediates
String
Intermediate certificates
ip_addresses
List
A list of IP addresses associated with this SSL Certificate
issuer
String
X509 issuer
key_type
String
Type of key
request
String
Certificate signing request text
status
String
Certificate status (Request Generated, New, Active, Active/Expired, Expired, or Available)
subject
String
X509 Subject name

Example Data Source

data "files_certificate" "example_certificate" {
  id = 1
}