Request
Endpoint: !AutoReplaceCS
https://secure.trust-provider.com/products/!AutoReplaceCS
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 |
128 chars |
The order number of the certificate to replace. |
||
|
optional |
string |
255 chars |
An email address to include in the SAN:rfc822Name field of the resulting certificate. If specified with a value, the resulting certificate email address will be set to this value. If specified with a blank value, no email address will be included in the resulting certificate. If omitted, the resulting certificate email address defaults to the current certificate email address. |
||
|
optional |
string |
255chars |
An email address to include in the SAN:rfc822Name field of the resulting certificate. Equivalent to the This parameter has been added only for usability of those partners who are requesting certificates through This parameter follows the same rules given for the preceding If both email addresses are provided in the request, the |
||
|
optional |
string |
255 chars |
The It should always be provided when |
||
|
conditional |
string |
32767 chars |
The PKCS#10, Base-64 encoded certificate signing request with or without the Required if the
|
||
|
conditional |
string |
32767 chars |
A Netscape, Mozilla, Firefox 'SPKAC' public key. Required if the
|
||
|
conditional |
string |
32767 chars |
The PKCS#10, Base64-encoded certificate signing request, with or without the Required if
|
||
|
optional |
string |
64 chars |
The preferred signature hash algorithm to be used when issuing the certificate. The allowed values are:
If omitted, the value defaults to |
||
|
optional |
integer |
Specifies a particular CA certificate or key. If specified, this parameter overrides Sectigo’s default choice of CA certificate or key to be used to issue this certificate. This functionality is only available by special agreement with Sectigo. |
|||
|
optional |
string |
64 chars |
Specifies the organization name. |
||
|
optional |
string |
64 chars |
The organizational department name. |
||
|
optional |
string |
40 chars |
The organization’s post office box. |
||
|
optional |
string |
128 chars |
The street address where the organization operates. |
||
|
optional |
string |
128 chars |
The second part of the company’s street address (if necessary). |
||
|
optional |
string |
128 chars |
The third part of the company’s street address (if necessary). |
||
|
optional |
string |
128 chars |
The city in which the organization operates. |
||
|
optional |
string |
128 chars |
The state or province in which the organization operates. |
||
|
optional |
string |
40 chars |
The organization’s postal code. |
||
|
optional |
string |
2 chars |
An ISO 3166 two-character country code. |
||
|
optional |
string |
20 chars |
The hardware type used to generate the keypair in a non-exportable format, for CSR and key attestation. The allowed values are:
|
||
|
optional |
string |
32767 chars |
The Base64-encoded HSM-specific attestation package/blob proof that the keypair has been generated and stored in secure hardware. |
||
|
optional |
string |
1 char |
Specifies whether to show the replacement order number. The allowed values are:
If omitted, the value defaults to |
Sample request
curl --location 'https://secure.trust-provider.com/products/!AutoReplaceCS' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=login_name' \
--data-urlencode 'loginPassword=login_password' \
--data-urlencode 'orderNumber=1234567' \
--data-urlencode 'csr=-----BEGIN NEW CERTIFICATE REQUEST-----
MIIEjDCCAnQCAQAwRzELMAkGA1UEBhMCQ0ExDzANBgNVBAcTBk90dGF3YTEVMBMG
A1UEChMMU0FTUFNwYWNlT3JnMRAwDgYDVQQDEwdMdW5hLTAyMIICIjANBgkqhkiG
...
qe591+WtJ7VKT/VUhGuu8vVqaxI09880/xOW9giuDQnNCAfo1/Mxz3vVAF42XsxT
8rKEA6jy/TKX947DJHV5yg==
-----END NEW CERTIFICATE REQUEST-----' \
--data-urlencode 'keyAttestation=MIIZsAYJKoZIhvcNAQcCoIIZoTCCGZ0CAQExADALBgkqhkiG9w0BBwGgghmFMIIErTCCA5WgAwIB
AgIBADANBgkqhkiG9w0BAQsFADB2MQswCQYDVQQGEwJDQTEWMBQGA1UEChMNQ2hyeXNhbGlzLUlU
...
zScxMWU3nK4lWVnL//Iungn5q9CzuHHXP/MDwDitexNoPYM/FRrvp9oQybzK2VihJGfa83KwvJjH
aEvaGOU8Yg2k1cirvlTznE5nLNcWxm4xAA==' \
--data-urlencode 'hsmType=LUNA'
Response
The request is successful when the server returns a response with the status code 0.
Any status code less than 0 indicates an error condition.
|
The list of codes and their descriptions can be found in Error codes. |
If the status code is less than 0, the output wil be displayed as the text/plain.
The first line contains the error code, and the second line contains the error description.
Error codes
The following table outlines error responses returned by the AutoReplaceCS 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. |
|
|
An unknown error occurred. |
|
|
Authentication has failed due to one of the specified reasons. Verify your login credentials or check account restrictions. |
|
|
The request method should be |
|
|
The certificate has already been revoked. |
|
|
The certificate has already been replaced. |
|
|
The required certificate is in the process of being issued. |
|
|
The request must include either |
|
|
The key size is not supported. |
|
|
The provided key attestation could not be verified. |