Configuring the Ansible role
The Ansible role requires that certain variables are provided.
The variables required are dependent on the specific use case.
The variables can be specified as a variable .yml
file to the playbook using the role.
Some variables contain sensitive values.
For these variables, we strongly encourage the use of |
Customer specific parameters
You must provide the following parameters for all SSL and client certificate use cases.
It is also possible to specify the customer specific parameters as environment variables.
The names of the environment variables are the same names as parameters but in uppercase—for example, SECTIGO_CM_USER
for sectigo_cm_user
.
Values specified as environment variables have precedence over values specified in playbooks. It is suggested that you familiarize yourself with the Ansible variables precedence rules. |
Parameter | Type | Description |
---|---|---|
|
Mandatory |
The user ID to access your URI |
|
Mandatory |
The password to access your URI |
|
Mandatory |
Your specific URI |
|
Mandatory |
Your Organization ID (numeric) |
|
Mandatory |
The base URL of the Sectigo Certificate Authority |
CSR parameters
The following CSR parameters are required for all SSL and client certificate use cases.
Parameter | Type | Description |
---|---|---|
|
Conditional |
A single value for a domain which is included in the certificate Common Name (CN) field. Required if |
|
Conditional |
The certificate signing request subject. If this parameter is provided, then you generate the default RSA 2048-bit private key to be used for the CSR. Required if the other parameters for the CSR have not been provided. |
|
Conditional |
The country name which is included in the certificate Country (C) field. Required if |
|
Conditional |
The state/province name which is included in the certificate State (ST) field. Required if |
|
Conditional |
The location name which is included in the certificate Location (L) field. Required if |
|
Conditional |
The organization name which is included in the certificate Organization (O) field. Required if |
|
Conditional |
The organization unit which is included in the certificate Organization Unit (OU) field. Required if |
|
Conditional |
The email address which is included in the certificate emailAddress field. Required if |
|
Conditional |
The full path of the certificate signing request file. If this is provided, then the subject parameters will be ignored. |
|
Optional |
The private key algorithm to use to generate the private key.
The possible values are |
|
Optional |
The size of the TLS/SSL key to generate. The possible values are:
The default value is RSA 2048-bit. |
Certificate issuance parameters
The SSL and client certificate issuance use cases support different scenarios that require different parameters.
Parameter | Type | Description |
---|---|---|
SSL certificates |
||
|
Mandatory |
The location where the certificate is to be stored. The same location is used to store the CSR, private key, and enrollment IDs. |
|
Mandatory |
The name of the certificate file. The same name is used for the private key, CSR, and enrollment IDs. |
|
Mandatory |
The type of SSL certificate (numeric). This is the ID of the SSL certificate type. |
|
Mandatory |
The certificate validity period in days (numeric).
The available values are dependent on |
|
Optional |
The format type for the SSL certificate. The supported values are:
|
|
Optional |
Comments for certificate enrollment |
|
Conditional |
The number of server licenses (numeric) |
|
Optional |
The custom fields to be applied to the requested certificate. The expected format for custom fields is the following.
If you are providing this input in a JSON string, make sure that the internal double quotes are escaped properly using Updating custom fields will trigger the issuance of a new certificate during the next check of the certificate’s renewal status. |
|
Optional |
The server type ID (numeric) |
|
Optional |
A list of subject alternative names (SAN). Updating SAN will trigger the issuance of a new certificate during the next check of the certificate’s renewal status. |
|
Optional |
A comma separated list of emails |
SSL certificate autorenewal |
||
|
Optional |
If If a certificate was revoked, it cannot be renewed—a new certificate will be enrolled. |
|
Optional |
The period of days (numeric) prior to expiration that a new SSL certificate enrollment process will be initiated if a playbook is executed. Note: The default expiry window is |
Client certificates |
||
|
Mandatory |
The location where the certificate, CSR, private key, and enrollment IDs are stored. |
|
Mandatory |
The name of the certificate file. The same name is used for the private key, the CSR, and enrollment IDs. |
|
Mandatory |
The user’s first name |
|
Conditional |
The user’s middle name |
|
Mandatory |
The user’s last name. The combined length of the first, middle, and last name fields cannot exceed 64 characters. |
|
Mandatory |
A valid user email that is less than 256 characters |
|
Mandatory |
The type of certificate (numeric). This is the ID of the client certificate type. |
|
Mandatory |
The certificate validity period in days (numeric).
The available values depend on |
|
Optional |
The custom fields to be applied to the requested certificate. The expected format for custom fields is the following.
If you are providing this input in a JSON string, make sure that the internal double quotes are escaped properly using Updating custom fields will trigger the issuance of a new certificate during the next check of the certificate’s renewal status. |
Client certificate autorenewal |
||
|
Optional |
If If a certificate was revoked, it cannot be renewed—a new certificate will be enrolled. |
|
Optional |
The period of days (numeric) prior to expiration that a new client certificate enrollment process will be initiated if a playbook is executed.
The default expiry window is |
Certificate revocation parameters
SSL and client certificates can be revoked by setting the sectigo_state
variable to absent
.
The SSL and client revocation use cases support the use of the following parameters.
If a certificate was revoked, it cannot be renewed—a new certificate be enrolled during the next check of the certificate’s renewal status.
Parameter | Type | Description |
---|---|---|
SSL certificates |
||
|
Mandatory |
The ID of the SSL certificate to be revoked |
|
Mandatory |
The reason why a certificate is to be revoked |
Client certificates |
||
|
Mandatory |
The order number of the client certificate to be revoked |
|
Mandatory |
The reason why a certificate is to be revoked |
Other parameters
These additional parameters determine the behavior of the role.
Parameter | Type | Description |
---|---|---|
|
Optional |
The interval (in seconds) between repeated attempts to collect a certificate (numeric).
The default value is |
|
Optional |
The maximum time (in seconds) during which repeated attempts to collect a certificate will be made (numeric).
The default value is |
|
Optional |
Used to issue a new certificate even if there is already an existing one on the target server (Boolean).
The default is |
|
Optional |
The reason why a certificate is to be revoked |