Request
Endpoint: !AutoReplaceSSL
https://secure.trust-provider.com/products/!AutoReplaceSSL
Use the POST method for this endpoint.
Submit parameters in the x-www-form-urlencoded format.
|
When you call this API, it will not necessarily revoke any previous certificate(s) on the order. If you want to make sure that the certificate being replaced is revoked, use the |
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 |
integer |
The order number of certificate to be replaced. The order number of a certificate ordered previously using |
|||||
|
optional |
char |
1 char |
Specifies whether Sectigo will use the The allowed values are:
|
||||
|
optional |
integer |
Specifies the web server on which the SSL certificate will be installed. The allowed values are:
|
|||||
|
optional |
string |
32767 chars |
(Multi-domain SSL and Unified Communications certificates only) A 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.
|
||||
|
optional |
string |
64 chars |
(Multi-domain SSL certificates and Unified Communications certificates only) Specifies the primary domain name. One of the domain names listed in 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 |
Specifies the number of Common Names. This is optional for multi-domain SSL certificates and ignored for all other certificate types. If omitted, the value defaults to If this parameter has the If this parameter is equal to All the domain names listed in |
|||||
|
optional |
string |
64 chars |
(Single Domain SSL certificates) Specifies the domain name. If a Common Name is specified here and in the |
||||
|
optional |
string |
32767 chars |
The Base64-encoded certificate signing request, with or without the If this parameter is omitted, the CSR from the original order will be used instead.
A For the Request tokens may be ensured to be unique by:
|
||||
|
optional |
string |
20 chars |
Specifies a unique alphanumeric value. The
Request Tokens are as defined in the CABF Baseline Requirements (version 1.4.1 or later) and used in the manner described in Domain Control Validation.
If the If the An error code |
||||
|
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 |
The preference for the signature hash algorithm to be used when issuing the certificate. The allowed values are:
If omitted, the value is |
||||
|
optional |
string |
64 chars |
The organization name. If the organizational name is specified here and |
||||
|
optional |
string |
64 chars |
The organizational unit name. If an organizational unit name is specified here and in the CSR, |
||||
|
optional |
string |
40 chars |
The organization post office box. If a post office box is specified here and in the CSR, |
||||
|
optional |
string |
128 chars |
The street address where the organization is incorporated. If a street address is specified here and in the CSR, |
||||
|
optional |
string |
128 chars |
The second part of the company’s street address (if necessary). If the second part of the company’s street address is specified here and in the CSR, |
||||
|
optional |
string |
128 chars |
The third part of the company’s street address (if necessary). If the third part of the company’s street address is specified here and in the CSR, |
||||
|
optional |
string |
128 chars |
The city in which the organization is incorporated. If the locality name is specified here and in the CSR, |
||||
|
optional |
string |
128 chars |
The state or province in which the organization operates. If a state or province name is specified here and in the CSR, |
||||
|
optional |
string |
40 chars |
The company’s postal code. If a postal code is specified here and in the CSR, |
||||
|
optional |
string |
2 chars |
The company’s country name. Ths parameter should be specified using the ISO 3166 two-character code. If a country name is specified here and |
||||
|
optional |
string |
20 chars |
DUNS number — a unique nine-digit identifier for businesses, provided by the company Dun & Bradstreet. |
||||
|
optional |
string |
64 chars |
The company registration number. |
||||
|
optional |
string |
128 chars |
(EV certificates only) The jurisdiction of the city in which the organization is incorporated. |
||||
|
optional |
string |
128 chars |
(EV certificates only) The jurisdiction of the state or province in which the company is incorporated. |
||||
|
optional |
string |
2 chars |
(EV certificates only) The jurisdiction of the country in which the company is incorporated. |
||||
|
optional |
string |
64 chars |
(EV certificates only) An optional name under which the organization operates that is different from its legal name. This is a so-called DBA (doing business as) name for the company (if any). |
||||
|
optional |
string |
10 chars |
(EV certificates only) The date of incorporation ( |
||||
|
optional |
string |
32 chars |
The Domain Control Validation method. The allowed values are:
If omitted, the value defaults to For more information, see Domain Control Validation.
|
||||
|
optional |
string |
255 chars |
(Single-domain SSL certificates only) Domain Control Validation for an 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. |
||||
|
conditional |
string |
32767 chars |
(Multi-domain SSL certificates and Unified Communications certificates only) The comma or white-space 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 |
An account can contain multiple callback email templates. Contact Support for the callback template. If specified, this overrides Sectigo’s default choice of callback email template to be used to validate this certificate. Contact your account manager to arrange one or more custom callback email templates that can be referenced through this parameter.
|
|||||
|
conditional |
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 APIs to aid in integration with partner systems. If |
||||
|
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 |
string |
64 chars |
(OV certificates only) The applicant representative’s name which is used for a callback. This parameter is required when Sectigo performs the organizational callback. |
||||
|
optional |
string |
64 chars |
(OV certificates only) The applicant representative’s surname which is used for a callback. This parameter is required when Sectigo performs the organizational callback. |
||||
|
optional |
string |
255 chars |
(OV certificates only) The applicant representative’s email address which is used for a callback. This parameter is required when Sectigo performs the organizational callback. |
||||
|
optional |
string |
32 chars |
(OV certificates only) The applicant representative’s phone number which is used for a callback. This parameter is required when Sectigo performs the organizational callback. |
||||
|
optional |
string |
64 chars |
(OV certificates only) The applicant representative’s title which is used for a callback. |
||||
|
optional |
string |
32 chars |
(OV certificates only) The applicant representative’s fax number which is used for a callback. |
||||
|
optional |
string |
255 chars |
(OV certificates only) The applicant representative’s organization name. Do not specify this field unless the applicant representative’s organization name or address details are different from the organization name or address details that have been requested to appear in the certificate. |
||||
|
conditional |
string |
64 chars |
(OV certificates only) The applicant representative’s organizational unit name. If |
||||
|
conditional |
string |
128 chars |
(OV certificates only) The applicant representative’s street address. If |
||||
|
conditional |
string |
128 chars |
(OV certificates only) The second part of the applicant representative’s street address (if necessary). If |
||||
|
conditional |
string |
128 chars |
(OV certificates only) The third part of the applicant representative’s street address (if necessary). If |
||||
|
conditional |
string |
128 chars |
(OV certificates only) The applicant representative’s post office box. If |
||||
|
conditional |
string |
128 chars |
(OV certificates only) The city in which the applicant representative operates. If |
||||
|
conditional |
string |
128 chars |
(OV certificates only) The applicant representative’s state or province. If |
||||
|
conditional |
string |
40 chars |
(OV certificates only) The applicant representative’s postal code. If |
||||
|
conditional |
char |
2 chars |
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:
|
||||
|
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 FQDNs from the certificate. The allowed values are:
If omitted, the value defaults to |
||||
|
optional |
char |
1 char |
(OV/EV certificates only) Specifies whether to ignore late changes to organization details. This parameter is applicable only outside of the refund eligibility period. The allowed values are:
If omitted, the value defaults to |
||||
|
optional |
char |
1 char |
(OV/EV 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 the validity period of the certificate. The possible values are:
If omitted, the value defaults to |
||||
|
optional |
char |
100 chars |
(eIDAS certificates 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.
For more information, see For certificates issued under PSD2, this parameter must contain information using the following structure in the presented order:
For example, For non-PSD2 certificate profiles, this parameter must contain information using the following structure in the presented order:
For example, |
||||
|
optional |
char |
100 chars |
(eIDAS certificates only) The semantics information for the attributes stored in the subject field related to natural person. Required for QWAC Natural Qualified Certificate Profiles – product IDs This parameter must contain information using the following structure in the presented order:
|
||||
|
optional |
char |
100 chars |
(eIDAS certificates only) The abbreviated unique identifier of the National Competent Authority.
For more information, see Required for PSD2 Qualified Certificate Profiles with product IDs This parameter must contain information using the following structure in the presented order:
|
||||
|
optional |
char |
1 char |
(eIDAS certificates only) Specifies one of possible roles of the payment service provider. Required for PSD2 Qualified Certificate Profiles. The allowed values are:
|
||||
|
optional |
char |
1 char |
(eIDAS certificates only) Specifies one of possible roles of the payment service provider. Required for PSD2 Qualified Certificate Profiles. The allowed values are:
|
||||
|
optional |
char |
1 char |
(eIDAS certificates only) Specifies one of possible roles of the payment service provider. Required for PSD2 Qualified Certificate Profiles. The allowed values are:
|
||||
|
optional |
char |
1 char |
(eIDAS certificates only) Specifies one of possible roles of the payment service provider. Required for PSD2 Qualified Certificate Profiles. The allowed values are:
|
||||
|
optional |
char |
1 char |
(Multi-domain SSL certificates only) Specifies whether to show the replacement order number. The allowed values are:
If omitted, the value defaults to |
||||
|
optional |
char |
100 chars |
The name of National Competent Authority (NCA) in English that registered the payment service provider. Required for PSD2 Qualified Certificate Profiles. If the |
Sample request
curl --location 'https://secure.trust-provider.com/products/!AutoReplaceSSL' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=login_name' \
--data-urlencode 'loginPassword=login_password' \
--data-urlencode 'serverSoftware=-1' \
--data-urlencode 'domainNames=test.com,example.com' \
--data-urlencode 'primaryDomainName=test.com,example.com' \
--data-urlencode 'prioritiseCSRValues=N' \
--data-urlencode 'organizationName=AppRep Org' \
--data-urlencode 'organizationalUnitName=Legal' \
--data-urlencode 'postOfficeBox=654' \
--data-urlencode 'streetAddress1=5 AppRep St' \
--data-urlencode 'localityName=AppRepville' \
--data-urlencode 'stateOrProvinceName=CA' \
--data-urlencode 'postalCode=54321' \
--data-urlencode 'countryName=US' \
--data-urlencode 'dcvMethod=EMAIL' \
--data-urlencode '[email protected]' \
--data-urlencode '[email protected],[email protected]' \
--data-urlencode 'isCustomerValidated=Y' \
--data-urlencode 'showCertificateID=Y' \
--data-urlencode 'orderNumber=1234567890' \
--data-urlencode 'isCallbackCompleted=Y' \
--data-urlencode 'uniqueValue=1234567890qwertyuop' \
--data-urlencode 'csr=-----BEGIN NEW CERTIFICATE REQUEST-----
MIIbWQYJKoZIhvcNAQcCoIIbSjCCG0YCAQExDTALBglghkgBZQMEAgEwDwYJKoZI
hvcNAQcBoAIEAKCCGHEwggzyMIILWqADAgECAhBLVWcU36fkE8Hi/55APse9MA0G
...
Hi4ZaP9ok+JrTdy01WOmCnuAIaOUdM+w3wb+DSNLh9MoqqeM2mBZdC7EGthYeg+O
RhZWrKZng/nCi4Pt0PQrKEFNaMdscl+0rnrQA+U6llop7fmztjhKtOwDR6bQ
-----END NEW CERTIFICATE REQUEST-----'
Response
The request is successful when the server returns a response with the status code equals 0.
Any status code less than 0 indicates an error condition.
|
The list of codes and their descriptions can be found in Error codes. |
The format of the response depends on the responseFormat value in the request.
Response parameters
Response with responseFormat=0
The MIME type will be text/plan for responseFormat=0 (by default).
The first line of the response contains the status code.
If the status code is less than 0, the second line of the response contains a textual description of the error.
If the status code equals 0, the response will be formatted like one of the following:
| Line | Content | Possible Values | ||
|---|---|---|---|---|
Line 1 |
Status code |
The list of codes and their descriptions can be found in Error codes. |
||
Line 2 |
Expected delivery time |
The expected number of hours before the certificate will be reissued:
|
||
Line 3 |
SSL certificate ID |
The ID can consist of up to 16 digits and it can be returned if The internal certificate ID of the SSL certificate generated by this replacement. If the certificate being replaced was never issued, this ID will be the same as before. |
||
Line 3 or 4 |
SSL certificate state |
The status of the SSL certificate generated by this replacement. Returned if |
||
Line 3, 4 or 5 |
Unique value |
A unique alphanumeric value up to 20 characters long. Returned if a |
||
Next line |
Product term start and end timestamps |
The product term start timestamp and product term end timestamp with a space between the dates. The timestamp is expressed as a UNIX time value.
Returned if |
||
Next line |
SSL replacement order number |
The order number of the multi-domain SSL certificate generated by this replacement. Returned if |
Response with responseFormat=1
Most of Sectigo’s newer API endpoints use URL-encoding for responses.
!AutoReplaceSSL can now be instructed to return responses in the same format by specifying responseFormat=1 in the request.
The MIME type is application/x-www-form-urlencoded for responseFormat=1.
The response can contain the following parameters:
| Parameter | Possible Value |
|---|---|
|
An integer specifying the error code. Always present in the response. For possible values, see Error codes. |
|
A string specifying the error message. This parameter is absent when |
|
The expected number of hours before this order will be completed. The possible values are:
This parameter is only present when |
|
The internal certificate ID of the SSL certificate generated by this replacement. This parameter is only present when |
|
The status of the SSL certificate generated by this replacement. This parameter is only present when |
|
A unique alphanumeric value up to 20 characters long. Returned if the |
|
The timestamp when the product term has started. It is expressed as a UNIX time value. This parameter is only present when |
|
Timestamp when the product term will end. It is expressed as a UNIX time value. This parameter is only present when |
|
The product duration, in days. This parameter is only present when |
|
The order number of the multi-domain SSL certificate generated by this replacement. This parameter is only present when |
Error codes
The following table outlines error responses returned by the AutoReplaceSSL 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 |
|
|
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 |
|
|
Domain names must not be fully qualified domain names (FQDNs). |
|
|
Domain names must not be Internet-accessible IP addresses. |
|
|
The certificate is in the process of being issued and cannot be replaced at this time. |
|
|
The certificate cannot be replaced because it has expired. |
|
|
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 |
|
|
Semantic error.
|
|
|
Semantic error. The format of the provided identifier is incorrect. |
|
|
Semantic error. The country code in the provided identifier is incorrect. |