Skip to main content

Re-Import Certificate

Re-import an existing certificate. All domains attached with this certificate will bind with the newly-imported certificate.

Request

Request-Line

POST /sfd/v2.0/certs/{certificateId}/reimport HTTP/1.1

Request Parameters

Path Parameters

ParameterTypeRequiredDescription
certificateIdLongMandatoryUnique identifier of the certificate record.

Body Parameters

ParameterTypeRequiredDescription
certificateStringMandatoryCertificate.
privateKeyStringMandatoryPrivate Key.
chainStringOptionalChain.

Response

Response Body

Property nameTypeRequiredDescription
idLongMandatoryUnique identifier of the certificate record.
customerIdIntegerMandatoryThe certificate under customer ID.
commonNameStringMandatoryCommon name.
subjectAlternativeNamesStringMandatorySubject alternative names.
serialNumberStringMandatorySerial number.
issuerStringMandatoryIssuer.
organizationStringOptionalOrganization.
organizationalUnitStringOptionalOrganizational unit.
countryStringMandatoryCountry.
stateOrProvinceStringOptionalState or province.
localityStringOptionalLocality.
validFromStringMandatoryValidity period start time in UTC.
validToStringMandatoryValidity period end time in UTC.
createdStringMandatoryCreated time in UTC.
expireInIntegerMandatoryRemaining days before the certificate expireds.

Time Format: All timestamps use ISO 8601 format without milliseconds: yyyy-MM-dd'T'HH:mm:ss'Z'. Example: 2025-06-25T08:59:38Z

Status Codes, Error Codes and Error Messages

Status CodeError CodeError Message
400Certificate.InvalidCertificate is empty or invalid.
400PrivateKey.InvalidPrivateKey is empty or invalid.
400Upload.Certificate.InvalidUpload certificate has error.
400Certificate.InvalidCertificate or privateKey invalid.

Examples

Re-Import Certificate

Request

POST /sfd/v2.0/certs/2362/reimport HTTP/1.1

{
"certificate": "-----BEGIN CERTIFICATE-----\n[Base64-encoded certificate data]\n-----END CERTIFICATE-----",
"privateKey": "-----BEGIN RSA PRIVATE KEY-----\n[Base64-encoded PKCS#1 private key data]\n-----END RSA PRIVATE KEY-----",
"chain": "-----BEGIN CERTIFICATE-----\n[Base64-encoded certificate data]\n-----END CERTIFICATE-----\n[Base64-encoded certificate data]\n-----BEGIN CERTIFICATE-----"
}

Successful Response Body

{
"id": 2356,
"customerId": 123,
"commonName": "*.example.org",
"subjectAlternativeNames": "DNS:*.example.org, DNS:example.org",
"serialNumber": "231272262238822062748024707871705586383",
"issuer": "DigiCert Global G3 TLS ECC SHA384 2020 CA1",
"organization": "",
"organizationalUnit": "",
"country": "CN",
"stateOrProvince": "",
"locality": "",
"validFrom": "2024-06-25T08:59:38Z",
"validTo": "2025-06-25T08:59:38Z",
"created": "2024-06-25T13:33:18Z",
"expireIn": 358
}