Using the connector
This page provides commands for enrolling and managing certificates using the Akamai Terraform Provider.
Enroll a certificate
To enroll a certificate for a domain, navigate to the directory that contains the main.tf
file for your domain (for example, ./example/main.tf
) and run these Terraform commands.
terraform init
terraform plan
terraform apply
The connector performs the following actions:
-
Collects information from the Terraform variables.
-
Sends an enrollment request to Akamai CPS. Akamai accepts this request and creates a certificate record in CPS.
-
Downloads the CSR file from Akamai CPS.
-
Sends the CSR to SCM. SCM signs the CSR and generates a certificate and trust chain.
-
Downloads the certificate and trust chain files from SCM.
-
Uploads the certificate and trust chain files to Akamai CPS.
-
Deploys the certificate to the production environment on Akamai. The certificate cannot be used in production without this step.
Deploying a certificate on Akamai may take 10-15 minutes.
Possible errors include:
-
Invalid or empty values in the
variables.tf
or./example/main.tf
files -
Authentication or authorization issues with the Sectigo API request
-
Akamai may take a long time to respond.
The following image shows provisioned certificates in Akamai CPS.
Renew a certificate
-
Navigate to the directory which was used for certificate enrollment.
-
Run
terraform apply
.
This will enroll a new certificate with the same attributes and values as in the existing certificate. The old certificate remains valid if you don’t revoke it manually in SCM.
Deploying a certificate on Akamai may take 10-15 minutes. |
Replace a certificate
The replace
action updates an existing certificate with new attributes or values.
The validity period remains the same.
-
Navigate to the directory that contains the
main.tf
file for the existing certificate. -
Update the value of the
sans
or any other variable and change the value of thekey_type
variable toreplace
. -
Run these Terraform commands.
terraform init
terraform plan
terraform apply
Deploying a certificate on Akamai may take 10-15 minutes. |