Request
Endpoint: !AutoApplySSL
https://secure.trust-provider.com/products/!AutoApplySSL
Use the POST method for this endpoint.
Submit parameters in the x-www-form-urlencoded format.
Request parameters
The following table displays the required, optional, and conditional parameters.
| Parameter | Requirement | Type | Max.Length | Description | ||
|---|---|---|---|---|---|---|
|
required |
string |
64 chars |
Your account username. This value is case sensitive. |
||
|
required |
string |
128 chars |
Your account password. This value is case sensitive. |
||
|
required |
string |
64 chars |
Specifies a comma-separated string of product code integers. There must be exactly one of the following integers specified:
|
||
|
conditional |
integer |
The validity period, in years. For most products, it’s If
|
|||
|
conditional |
integer |
The validity period, in days. For most products, the If |
|||
|
optional |
integer |
The number of server licenses. The Wildcard product values are from
|
|||
|
required |
integer |
Specifies the server software code. The allowed values are:
|
|||
|
optional |
string |
32767 chars |
(Multi-Domain SSL and Unified Communications certificates only) The comma-separated or whitespace-separated list of domain names to be placed into Multi-Domain SSL certificates. For non-EV certificates, IP addresses are also allowed. Domain names are processed as follows:
|
||
|
optional |
string |
64 chars |
(Multi-Domain SSL and Unified Communications certificates) The primary domain name. One of the domain names listed in the If this parameter is omitted for Multi-Domain certificates, no Common Names will be included in the resulting certificate. If this parameter is omitted for Unified Communications certificates, the value of the CSR’s Common Name will be used as the primary domain name instead. |
||
|
optional |
integer |
The number of Common Names. It is optional for Multi-Domain SSL certificates. It is ignored for all other certificate types. If omitted, the value defaults to If If it is All domain names listed in |
|||
|
optional |
string |
64 chars |
(Single-Domain SSL certificates only) The domain name. If a Common Name is specified here and in the |
||
|
required |
string |
32767 chars |
The Base64-encoded certificate signing request, with or without the For more information, see CSR parameter structure. |
||
|
optional |
string |
20 chars |
An alphanumeric value used to ensure the Request Token is unique for The request tokens are as defined in the CA/B Forum Baseline requirements (version 1.4.1 or later) and used in the manner described in Sectigo’s Domain Control Validation. If a If a |
||
|
optional |
char |
1 char |
Specifies which values to use if there are duplicates. For example, if a postal code is specified in both the CSR and as a separate variable. The allowed values are:
If omitted, the value defaults to |
||
|
optional |
string |
64 chars |
Specifies the preference for the signature hash algorithm to be used when issuing the certificate. The allowed values are:
If omitted, the value defaults to |
||
|
optional |
string |
64 chars |
Specifies the organization name. If an organization name is specified here and If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
64 chars |
The organizational unit name. If an organizational unit name is specified here and in the If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
40 chars |
The organization post office box. If a post office box is specified here and in the If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
required |
string |
128 chars |
The street address where the organization operates. If a street address is specified here and in the If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
128 chars |
The second part of the company’s street address (if necessary). If a second street address is specified here and in the If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
128 chars |
The third part of the company’s street address (if necessary). If a third street address is specified here and in the If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
conditional |
string |
128 chars |
The city in which the organization operates. If this parameter is specified, If a locality name is specified here and in the If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
conditional |
string |
128 chars |
The state or province in which the organization operates. If this parameter is specified, If a state or province name is specified here and in the If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
required |
string |
40 chars |
The company’s postal code. If a postal code is specified here and in the If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
required |
string |
2 chars |
An ISO 3166 two-character country code. If a country name is specified here and If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
20 chars |
A unique nine-digit identifier for businesses, provided by the company Dun & Bradstreet. If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
64 chars |
The registration number of the organization provided for validation purposes. If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
128 chars |
(EV certificates only) The jurisdiction of the city in which the organization operates. If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
128 chars |
(EV certificates only) The jurisdiction of the state or province in which the organization operates. If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
conditional |
string |
2 chars |
(EV certificates only) The jurisdiction of the country in which the company operates. If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
10 chars |
(EV certificates only) The date of incorporation ( |
||
|
optional |
string |
64 chars |
(EV certificates only) An optional name under which the organization operates that is different from its legal name. This is often referred to as a DBA (doing business as) name for the company (if any). If the parameter’s value exceeds the maximum length, it will be truncated. |
||
|
optional |
char |
1 char |
The legal classification of the organization. The allowed values are:
If the parameter’s value exceeds the maximum length, it will be truncated. |
||
|
optional |
string |
255 chars |
The alternative issuance email address. If specified, the certificate will be emailed to this email address rather than the applicant’s admin email address. If the value specified is If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
255 chars |
The validation email address. If specified, Sectigo will validate that this is the email address of the end customer. Sectigo will not send any emails to this email address. Sectigo will trust you, the Web Host, to forward emails to this end customer as appropriate. If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
255 chars |
The contact email address. If specified, this email address will be the only email address that Sectigo validation department will correspond with during the processing of this order. If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
32 chars |
The Domain Control Validation method. The allowed values are:
If omitted, the value defaults to If the length of the parameter’s value exceeds the maximum, the value will be truncated. For more information, see Domain Control Validation.
|
||
|
optional |
string |
255 chars |
(Single-domain SSL only) The DCV email address.
If specified, this email address must be an acceptable email address with which to perform Domain Control Validation (DCV) for this certificate. For more information, see GetDCVEmailAddressList. Alternative DCV mechanisms are now available. For more information, see Domain Control Validation. If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
conditional |
string |
32767 chars |
(Multi-Domain SSL and Unified Communications certificates only) The comma or whitespace-separated list of DCV email addresses to be used to perform Domain Control Validation for each domain in this certificate.
The order in which these email addresses are listed must be exactly the same as the order of the domain names in the certificate request.
For more information, see the preceding Alternative DCV mechanisms are now available. For more information, see Domain Control Validation. The allowed values for each domain:
The allowed magic tokens if all domains in the order need to be set to the same alternative DCV method:
The magic token must be the only value passed to the parameter for it to work. If |
||
|
optional |
integer |
Specifies whether to override Sectigo’s default choice of DCV email template to be used to validate the called certificate. Contact your account manager to arrange the creation of one or more custom DCV email templates that can be referenced through this parameter.
|
|||
|
optional |
integer |
Specifies whether to override Sectigo’s default email template used for Enterprise Authentication during instant issuance. Contact your account manager to arrange one or more of custom email templates of this type that can be referenced by this parameter. |
|||
|
optional |
integer |
Specifies whether to override Sectigo’s default choice of the callback email template to be used to validate the requested certificate. Contact your account manager to arrange one or more of custom callback email templates that can be referenced by this parameter. |
|||
|
optional |
string |
2 chars |
The language name, specified using ISO639-1 two-character language code. If omitted, the default language is English. An account can contain multiple email templates in different languages for the callback and Enterprise Authentication for the instant issuance. Contact Support for the email templates. If If You may specify exactly one of the following values:
|
||
|
conditional |
string |
32767 chars |
(Multi-Domain SSL and Unified Communications certificates only) Specifies validation tokens used to perform Domain Control Validation (DCV) for each domain. You can use one of the following magic tokens:
The magic token must be the only value passed to the parameter for it to work. The comma or whitespace separated list of validation tokens can be used to perform Domain Control Validation for each domain in request. The order of tokens must exactly match the order of the domain names specified in the Alternative DCV mechanisms are now available. For more information, see Domain Control Validation. The allowed values for each domain:
If |
||
|
optional |
integer |
Specifies a particular CA certificate and key to be used for certificate issuance. If specified, the This functionality is only available by special agreement with Sectigo. |
|||
|
optional |
char |
1 char |
Specifies whether the customer has already been validated by the Web Host. The allowed values are:
If omitted, the value defaults to |
||
|
optional |
char |
1 char |
Specifies whether to include the SSL certificate generated by the order in the response. The allowed values are:
If omitted, the value defaults to |
||
|
optional |
char |
64 chars |
The external order number. This identifier can be returned by some of our other API endpoints to aid in integration with partner systems. If the parameter’s value exceeds the maximum length, it will be truncated. |
||
|
optional |
char |
1 char |
Specifies whether to check the uniqueness of the The allowed values are:
|
||
|
optional |
char |
1 char |
Specifies the response format. The allowed values are:
If omitted, the value defaults to |
||
|
optional |
char |
1 char |
Specifies whether this is a test order. The allowed values are:
If omitted, it defaults to |
||
|
optional |
string |
255 chars |
(TrustLogo only) An email address to add to If the parameter’s value exceeds the maximum length, it will be truncated. |
||
|
optional |
string |
32 chars |
(TrustLogo only) A telephone number to add to If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
32 chars |
(TrustLogo only) A fax number to add to If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
64 chars |
(OV certificates only) The applicant representative’s name which is used for the organizational callback by Sectigo. If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
64 chars |
(OV certificates only) The applicant representative’s last name which is used for the organizational callback by Sectigo. If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
255 chars |
(OV certificates only) The applicant representative’s email address which is used for the organizational callback by Sectigo. If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
32 chars |
(OV certificates only) The applicant representative’s phone number which is used for the organizational callback by Sectigo. If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
64 chars |
(OV certificates only) The applicant representative’s job title which is used for the organizational callback by Sectigo. If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
32 chars |
(OV certificates only) The applicant representative’s fax number to be used for callback. If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
255 chars |
(OV certificates only) The applicant representative’s organization name which is used for the organizational callback by Sectigo. Do not specify this field unless the applicant representative’s organization name and Address details are different from the organization name and address details that have been requested to appear in the certificate. If If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
64 chars |
(OV certificates only) The applicant representative’s organizational unit name which is used for the organizational callback by Sectigo. If If the length of the parameter’s value exceeds the maximum, the value will be truncated. |
||
|
optional |
string |
128 chars |
(OV certificates only) The street address where the applicant representative does business which is used for the organizational callback by Sectigo. If If the parameter’s value exceeds the maximum length, it will be truncated. |
||
|
optional |
string |
128 chars |
(OV certificates only) The applicant representative’s post office box. If If the parameter’s value exceeds the maximum length, it will be truncated. |
||
|
conditional |
string |
128 chars |
(OV certificates only) The city in which the applicant representative operates. If If the parameter’s value exceeds the maximum length, it will be truncated. |
||
|
conditional |
string |
128 chars |
(OV certificates only) The applicant representative’s state or province. If If the parameter’s value exceeds the maximum length, it will be truncated. |
||
|
conditional |
string |
128 chars |
(OV certificates only) The applicant representative’s postal code. If If the parameter’s value exceeds the maximum length, it will be truncated. |
||
|
conditional |
char |
2 chars |
(OV certificates only) The applicant representative’s country code. It must be an ISO 3166 two-character country code. If |
||
|
optional |
char |
1 char |
The callback method for verification of applicant representative’s identity. The allowed values are:
If the parameter’s value exceeds the maximum length, it will be truncated. |
||
|
optional |
char |
1 char |
Specifies who is accountable for the verification of the applicant representative’s contact details before the callback is performed. The allowed values are:
|
||
|
optional |
char |
1 char |
Specifies who is accountable for performing the callback. The allowed values are:
|
||
|
optional |
char |
1 char |
Specifies whether to show the certificate state. The allowed values are:
|
||
|
optional |
char |
1 char |
(Single-domain SSL certificates only) Specifies whether to omit additional fully qualified domain names (FQDN) from the certificate. The allowed values are:
If omitted, the value defaults to |
||
|
optional |
char |
1 char |
Specifies whether to perform automatic OV validation. The allowed values are:
If omitted, the value defaults to |
||
|
optional |
char |
1 char |
(EV/OV certificates only) Specifies whether to ignore the master account settings. The allowed values are:
If omitted, the value defaults to |
||
|
optional |
char |
1 char |
Specifies whether to disable the Secure Website Platform (SWP). The allowed values are:
If omitted, the value defaults to |
||
|
optional |
char |
100 char |
(eIDAS only) The organization identifier or the PSD2 authorization identifier recognized by the National Competent Authority. Required for QWAC-legal, including for PSD2, Qualified Certificate Profiles with product IDs |
||
|
optional |
char |
100 char |
(eIDAS only) Semantics information for the attributes stored in the Subject Field related to a natural person. This parameter has a deprecated synonym — Required for QWAC Natural Qualified Certificate Profiles with product IDs For more information, see |
||
|
optional |
char |
100 char |
(eIDAS only) The abbreviated unique identifier of the National Competent Authority. Required for PSD2 Qualified Certificate Profiles with product IDs This parameter must contain information using the following structure in the presented order:
For more information, see |
||
|
optional |
char |
1 char |
(eIDAS only) Specifies one of the possible roles of the payment service provider. Required for PSD2 Qualified Certificate Profiles with product IDs The allowed values are:
|
||
|
optional |
char |
1 char |
(eIDAS only) Specifies one of possible roles of the payment service provider. Required for PSD2 Qualified Certificate Profiles with product IDs The allowed values are:
|
||
|
optional |
char |
1 char |
(eIDAS only) Specifies one of possible roles of the payment service provider. Required for PSD2 Qualified Certificate Profiles for product IDs The allowed values are:
|
||
|
optional |
char |
1 char |
(eIDAS only) Specifies one of the possible roles of the payment service provider. Required for PSD2 Qualified Certificate Profiles for product IDs The allowed values are:
|
||
|
optional |
char |
100 char |
(eIDAS only) The name of the National Competent Authority (NCA) in English that registered the payment service provider. Required for PSD2 Qualified Certificate Profiles with product IDs If the |
Sample request
curl --location 'https://secure.trust-provider.com/products/!AutoApplySSL' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=login_name' \
--data-urlencode 'loginPassword=login_password' \
--data-urlencode 'csr=-----BEGIN CERTIFICATE REQUEST-----
MIIC8zCCAdsCAQAwgY8xFjAUBgNVBAMTDSoua2lja2Fzcy5uZXQxIDAeBgkqhkiG
9w0BCQETEWFkbWluQGtpY2thc3MubmV0MRAwDgYDVQQKEwdraWNrYXNzMRUwEwYD
...
NeYGClM8JaMUDs25RlnY8ajFaGeCMRU3fgUJ89hBRL/fdduc1+A9Twi3Oy6DINmt
IbAzvOrWpZ11gKpTB3SpzVMerx/M7T6W2/Q7iFttcbfz+ctY3aTg
-----END CERTIFICATE REQUEST-----
' \
--data-urlencode 'product=732' \
--data-urlencode 'days=365' \
--data-urlencode 'appRepForename=John' \
--data-urlencode 'appRepSurname=Doe' \
--data-urlencode '[email protected]' \
--data-urlencode 'appRepTelephone=201-123-1233' \
--data-urlencode 'organizationName=organizational_name' \
--data-urlencode 'appRepTitle=title' \
--data-urlencode 'streetAddress1=Lincoln Road 50' \
--data-urlencode 'localityName=Houston' \
--data-urlencode 'stateOrProvinceName=TX' \
--data-urlencode 'postalCode=12345' \
--data-urlencode 'countryName=US' \
--data-urlencode 'prioritiseCSRValues=N' \
--data-urlencode 'joiCountryName=US' \
--data-urlencode 'stubOrderNumber=1234567' \
--data-urlencode '[email protected],[email protected]' \
--data-urlencode 'domainNames=test.net,sample.net' \
--data-urlencode 'primaryDomainName=test.net' \
--data-urlencode 'serverSoftware=31' \
--data-urlencode 'isCustomerValidated=N' \
--data-urlencode 'responseFormat=1'
Response
The request is successful when the server returns a response with the status code 0 or 1.
Any status code less than 0 indicates an error condition.
|
The list of codes and their descriptions can be found in Error codes. |
Whether 0 or 1 is returned for successful orders depends on how your account is configured with Sectigo.
Usually, you will take payment from your customer and Sectigo will debit your account funds when you place the order.
However, in special circumstances, it can be arranged for Sectigo to take payment from your customer on your behalf.
|
Sectigo reserves the right to define additional error codes and error messages in the future. |
Response format 0 (Plain text)
The MIME type will be text/plain for responseFormat=0 (by default).
The first line of the response contains a status code.
If the status code is less than 0, the second line contains an error message with description.
If the status code is greater than or equal to 0, the response can contain the following lines which provide:
| Line | Description | Possible Value |
|---|---|---|
Line 1 |
The status code. |
The status of the order. For more information, see Error codes. |
Line 2 |
The second line contains an order number. |
An integer. |
Line 3 |
|
Amount in your account’s native currency, without a currency symbol. |
Line 4 |
The expected delivery time. |
Expected number of hours before this order will be completed:
|
Line 5 (if applicable) |
The SSL certificate ID.
Returned only if |
A numeric certificate ID (up to 16 digits).
|
Line 6 (if applicable) |
The SSL certificate state.
Returned only if |
The status of the purchased SSL certificate. |
Line 7 (if applicable) |
The unique value.
Returned if |
A unique alphanumeric value up to 20 characters long. |
Response format 1 (URL‑encoded)
Most of Sectigo’s API endpoints use URL-encoded responses.
AutoApplySSL can return responses in the same format by specifying responseFormat=1 in the request.
The MIME type will be application/x-www-form-urlencoded for responseFormat=1.
The following table displays the various parameters that can appear for responseFormat=1.
| Parameter | Description |
|---|---|
|
A numeric code that identifies the type of the error. Always present in the response. For more information, see Error codes. |
|
A description of the error.
|
|
The order number.
|
|
Amount in your account’s native currency, without a currency symbol.
|
|
The expected number of hours before this order will be completed. The possible values are:
|
|
The internal certificate ID of the SSL certificate purchased by this order.
|
|
The status of the SSL certificate purchased by this order.
|
|
A unique alphanumeric value up to 20 characters long. Returned if the |
Error codes
The following table outlines error responses returned by the AutoApplySSL API endpoint.
Each error response consists of an errorCode and an errorMessage indicating why the request failed.
| Error Code | Error Message | Description |
|---|---|---|
|
|
The request must use HTTPS protocol. |
|
|
The provided argument is not recognized. |
|
|
The required argument is missing from the request. |
|
|
The argument value does not meet validation requirements. |
|
|
The Common Name in the certificate signing request (CSR) must not include a wildcard character. |
|
|
The Common Name in the CSR must include exactly one wildcard character. |
|
|
The specified country code is not valid according to the ISO-3166 standard. |
|
|
The CSR does not include all required fields. |
|
|
The CSR must be encoded in valid Base-64 format. |
|
|
The CSR could not be decoded properly. |
|
|
The CSR’s algorithm is not supported. |
|
|
The signature on the CSR is invalid. |
|
|
The key size in the CSR is not supported. |
|
|
An unknown error occurred. |
|
|
The account does not have sufficient credit. |
|
|
Authentication has failed due to one of the specified reasons. Verify your login credentials or check account restrictions. |
|
|
The request method should be POST. |
|
|
Common Names must not be fully qualified domain names (FQDNs). |
|
|
Common names must not be Internet-accessible IP addresses. |
|
|
The CSR’s Common Name must not be an IP address. |
|
|
The CSR’s key is on the compromised key list. |
|
|
The provided request token has already been used. |
|
|
The specified argument is not applicable for the current order. |
|
|
The user does not have permission to use a voucher with the specified context. |
|
|
The user does not have permission for the specified context. |
|
|
The required role arguments for PSD2 certificate type are missing. |
|
|
The semantic error. The value |
|
|
The semantic error. The format of the provided identifier is incorrect. |
|
|
The semantic error. The country code in the provided identifier is incorrect. |