Certificate Signing Request
akamai_cps_csr
Get the Certificate Signing Request (CSR) for a specified third-party enrollment.
When you create an enrollment in the Certificate Provisioning System (CPS), you also generate a PEM-formatted CSR. The CPS encodes the CSR with a private key using either the RSA or ECDSA algorithm. The CSR contains all the information the certificate authority (CA) needs to issue your certificate.
If you're using dual-stacked certificates, you'll see data for both ECDSA and RSA keys. Dual-stacked certificates are enabled by default for third-party enrollments.
data "akamai_cps_csr" "my-csr" {
enrollment_id = 12345
}
output "my-csr" {
value = data.akamai_cps_csr.my-csr
}
Changes to Outputs:
+ my-csr = {
+ csr_ecdsa = null
+ csr_rsa = <<-EOT
-----BEGIN CERTIFICATE REQUEST-----
nMIID <sample - removed for readability> .... nMweq
-----END CERTIFICATE REQUEST-----
EOT
+ enrollment_id = 12345
+ id = "12345:98765"
}
Argument
Pass an enrollment_id
in the body of the data block.
Attributes
Returned to you are the CSR details for the given enrollment.
Attribute | Description |
---|---|
csr_rsa | The CSR for the RSA algorithm. |
csr_ecdsa | The CSR for the ECDSA algorithm. |
enrollment_id | The enrollment ID. |
id | The data source ID. |
Updated 2 days ago