Resource: pingaccess_ceritficate
Provides a ceritficate.
Example Usage
resource "pingaccess_certificate" "demo_certificate" {
alias = "demo"
file_data = base64encode(file("test_cases/amazon_root_ca1.pem"))
}
Argument Attributes
The following arguments are supported:
-
alias
- (required) The alias for the certificate. -
file_data
- (required) The base64-encoded data of the certificate.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
-
id
- The certificates's ID. -
expires
- The date at which the certificate expires as the number of milliseconds since January 1, 1970, 00:00:00 GMT. -
issuer_dn
- The issuer DN for the certificate. -
md5sum
- The MD5 sum for the certificate. -
serial_number
- The serial number for the certificate. -
sha1sum
- The SHA1 sum for the certificate. -
signature_algorithm
- The algorithm used to sign the certificate. -
subject_cn
- The subject CN for the certificate. -
subject_dn
- The subject DN for the certificate. -
valid_from
- The date at which the certificate is valid from as the number of milliseconds since January 1, 1970, 00:00:00 GMT.
Import
PingAccess Certificates can be imported using the id, e.g.
$ terraform import pingaccess_certificate.demo_certificate 123