Integration parameters

The integration provides various parameters that you can use in different scenarios.

Customer-specific parameters

The following table lists parameters that are required for establishing a connection with SCM.

Parameter Requirement Description

sectigo_cm_user

required

User ID to access your URI.

sectigo_cm_password

required

Password to access your URI.

sectigo_cm_uri

required

Your specific Sectigo URI.

sectigo_cm_base_url

required

The base URL of the Sectigo CA.

CSR parameters

The following table lists parameters that are required for generation of the certificate signing request (CSR).

Parameter Requirement Description

sectigo_csr_domain

conditional

A single value for a domain included in the certificate Common Name (CN) field.

Required if sectigo_csr is not defined.

sectigo_csr_country

conditional

The country name included in the certificate Country (C) field.

Required if sectigo_csr is not defined.

sectigo_csr_state

conditional

The state or province name included in the certificate State (ST) field.

Required if sectigo_csr is not defined.

sectigo_csr_location

conditional

The location name included in the certificate Location (L) field.

Required if sectigo_csr is not defined.

sectigo_csr_organization

conditional

The organization name included in the certificate Organization (O) field.

Required if sectigo_csr is not defined.

sectigo_csr_organization_unit

conditional

The organization unit included in the certificate Organization Unit (OU) field.

Required if sectigo_csr is not defined.

sectigo_csr_email_address

conditional

The email address included in the certificate emailAddress field.

Required if sectigo_csr is not defined.

sectigo_csr

conditional

The full path to the CSR file.

If provided, then the subject parameters are ignored.

Required if sectigo_csr_domain, sectigo_csr_country, sectigo_csr_state, sectigo_csr_location, sectigo_csr_organization, sectigo_csr_organization_unit, sectigo_csr_email_address are not defined.

sectigo_csr_key_algo

optional

The private key algorithm to use to generate the private key. The default value is RSA.

sectigo_csr_key_size

optional

The size of the TLS/SSL key to generate. The possible values are:

  • 2048: for 2048-bit (default)

  • 3072: for 3072-bit

  • 4096: for 4096-bit

Certificate issuance parameters

The following table lists parameters that are used for certificate issuance.

Parameter Requirement Description

SSL certificates

sectigo_cm_org_id

required

Your organization ID (numeric).

sectigo_ssl_cert_file_path

required

The location where the certificate is to be stored. The same location is used to store CSR, private key, and enrollment IDs. The default file path is the one where the command is executed. For the chef- solo command , the root folder / is the execution folder.

sectigo_ssl_cert_file_name

required

The name of the certificate file. The same name is used for the CSR, private key, and enrollment IDs. the default file name is sectigo_ssl.

sectigo_ssl_cert_external_requester

optional

A comma-separated list of emails.

sectigo_ssl_cert_comments

optional

Comments for certificate enrollment.

sectigo_ssl_cert_num_servers

conditional

The number of server licenses (numeric).

sectigo_ssl_cert_server_type

optional

The server type ID (numeric).

sectigo_ssl_cert_subject_alt_names

optional

A comma-separated list of subject alternative names (SAN).

sectigo_ssl_cert_custom_fields

optional

Custom fields to be applied to the requested certificate. The expected format for custom fields is the following: [{"name":"custom_field_1","value":"value_1"},{"name":"custom_field_2","value":"value_2"}]. If you are providing this input in a JSON string, make sure that the internal double quotes are escaped properly using \.

sectigo_ssl_cert_format_type

optional

The format type for the SSL certificate. The supported values are:

  • x509: X509, Base64 encoded

  • x509CO: X509 certificate only, Base64 encoded (default)

  • x509IO: X509 Intermediates/Root only, Base64 encoded

  • base64: PKCS#7 Base64 encoded

  • bin: PKCS#7 Bin encoded

  • x509IOR: X509 Intermediates/Root only Reverse, Base64 encoded

sectigo_ssl_cert_validity

required

The certificate validity period in days (numeric). The values available are dependent on the selected sectigo_ssl_cert_type.

sectigo_ssl_cert_type

required

The type of SSL certificate (numeric). This is the ID of the SSL certificate type.

Client certificates

sectigo_cm_org_id

required

Your organization ID (numeric)

sectigo_client_cert_file_path

required

The location where the certificate is to be stored. The same location is used to store CSR, private key, and enrollment IDs. The default file path is from where the command is executed. For the chef- solo command, the root folder / is the execution folder.

sectigo_client_cert_file_name

required

The name of the certificate file. The same name is used for the CSR, private key, and enrollment IDs. The default filename is sectigo_client.

sectigo_client_cert_type

required

The type of client certificate (numeric). This is the ID of the client certificate type.

sectigo_client_cert_validity

required

The certificate validity period in days (numeric). The values available are dependent on the selected sectigo_ssl_cert_type.

sectigo_client_cert_email

required

A valid user email that is less than 256 characters.

sectigo_client_cert_first_name

required

The user’s first name.

sectigo_client_cert_middle_name

optional

The user’s middle name.

sectigo_client_cert_last_name

required

The user’s last name. The combined length of the first, middle, and last name fields cannot exceed 64 characters.

sectigo_client_cert_custom_fields

optional

Custom fields to be applied to the requested certificate. The expected format for custom fields is the following: [{"name":"custom_field_1","value":"value_1"},{"name":"custom_field_2","value":"value_2"}]. If you are providing this input in a JSON string, make sure that the internal double quotes are escaped properly using \.

sectigo_client_cert_subject_alt_names

optional

A comma-separated list of subject alternative names (SAN).

sectigo_client_cert_revoke_on_replace

optional

If True, previous certificates will be revoked when replaced. The default value is False.

Certificate auto-renewal

sectigo_expiry_window

optional

The period of days prior to expiration that a new certificate enrollment process will be initiated (numeric) if a chef-run operation is started. The default expiry window is 7 days.

sectigo_auto_renew

optional

If set to true, the auto-renewal option is enabled. The default value is true.

Collect certificate

sectigo_loop_period

optional

The interval (in seconds) between repeated attempts to collect a certificate (numeric). The default value is 30.

sectigo_max_timeout

optional

The maximum time (in seconds) during which repeated attempts to collect a certificate will be made (numeric). The default value is 600.

In addition to the parameters listed in the preceding table, you are required to pass CSR parameters.

Certificate collection parameters

The following table lists parameters that are used for collecting a certificate. The collection operation may fail if the certificate is still being processed. In such cases, the operation attempts to collect the certificate several times before returning a failure. The parameters allow you to configure the frequency and maximum time for additional attempts during certificate collection.

Parameter Requirement Description

SSL certificates

sectigo_ssl_cert_format_type

required

The format type for the SSL certificate. The supported values are:

  • x509: X509, Base64 ended (default)

  • x509CO: X509 certificate only, Base64 encoded

  • x509IO: X509 intermediates and root only, Base64 encoded

  • base64: PKCS#7 Base64 encoded

  • bin: PKCS#7 Bin encoded

  • x509IOR: X509 intermediates and root only Reverse, Base64 encoded

sectigo_loop_period

optional

The interval (in seconds) between repeated attempts to collect a certificate. The default value is 30.

sectigo_max_timeout

optional

The maximum time (in seconds) during which repeated attempts to collect a certificate will be made. The default value is 600.

sectigo_ssl_cert_ssl_id

conditional

The SSL ID of the certificate to be collected. Required if the selected recipe is collect_certificate.

sectigo_ssl_cert_file_path

optional

The location where the certificate is to be stored. The same location is used to store CSR, private key, and enrollment IDs. The default file path is the one where the command is executed. For the chef- solo command, the root folder / is the execution folder.

sectigo_ssl_cert_file_name

optional

The name of the certificate file. The same name is used for the CSR, private key, and enrollment IDs. The default file name is ssl_ssl_id_cert_format.

Client certificates

sectigo_loop_period

optional

The interval (in seconds) between repeated attempts to collect a certificate. The default value is 30.

sectigo_max_timeout

optional

The maximum time (in seconds) during which repeated attempts to collect a certificate will be made. The default value is 600.

sectigo_client_cert_file_name

optional

The order number of the certificate to be collected.

sectigo_client_cert_file_path

optional

The location where the certificate is to be stored. The same location is used to store CSR, private key, and enrollment IDs. The default file path is the one where the command is executed. For the chef- solo command, the root folder / is the execution folder.

sectigo_client_cert_order_number

conditional

The order number of the certificate to be collected. Required if the selected recipe is collect_certificate.

Certificate replacement parameters

The following table lists parameters that are used for replacing a certificate.

Parameter Requirement Description

SSL certificates

sectigo_replace_reason

required

Reason for replacing the certificate.

sectigo_ssl_cert_common_name

required

Single value for a domain included in the certificate Common Name (CN) field.

sectigo_generate_key_if_missing

required

If true, generates the private key if it is missing. The default value is true.

Client certificates

sectigo_replace_reason

required

Reason for replacing the certificate.

sectigo_client_cert_revoke_on_replace

required

If true, previous certificates will be revoked when replaced. The default value is true.

sectigo_generate_key_if_missing

required

If true, generates the private key if it is missing. The default value is true.

In addition to the parameters listed in the preceding table, you are required to pass CSR parameters that are listed in CSR parameters, as per your replacement requirement. For more information, see [Replacing certificates].

Certificate revocation parameters

The following table lists parameters that are used for manually revoking a certificate.

Parameter Requirement Description

SSL certificates

sectigo_revoke_reason

required

The reason why a certificate is to be revoked

sectigo_ssl_cert_file_name

required

The name of the certificate file. The same name is used for the CSR, private key, and enrollment IDs.

sectigo_ssl_cert_file_path

required

The location where the certificate is to be stored. The same location is used to store CSR, private key, and enrollment IDs.

Client certificates

sectigo_revoke_reason

required

The reason why a certificate is to be revoked

sectigo_client_cert_file_name

required

The name of the certificate file. The same name is used for the CSR, private key, and enrollment IDs.

sectigo_client_cert_file_path

required

The location where the certificate is to be stored. The same location is used to store CSR, private key, and enrollment IDs.

Miscellaneous parameters

The following table lists parameters that are used for renewing a certificate.

Parameter Requirement Description

sectigo_force

optional

Issues a new certificate even if there is already a certificate on the target server. The default value is false. If set to true, the existing certificate is backed up and any related information (key, CSR, ID) is deleted. This option is required if the certificate information (such as domain) has changed and a new certificate is required.

sectigo_cert_type

required

Indicates the type of the certificate. Should be set to ssl for SSL certificates and to client for client certificates.