Skip to content

Order or renew TLS certificate

POST /tls/certificate

Operation ID: CreateCertificate

Create a new TLS certificate order or renew an existing certificate. When renewal_of_certificate_id is set, validity_days still describes the purchased base term. If the provider accepts the renewal, any remaining validity from the previous certificate may be added after issuance. OV and EV-style products can return action_required=true together with a completion_url when additional organization or validation details are needed before submission.

tlsCertificateRequest

FieldTypeRequiredDescription
skutlsCertificateProductyesregfish TLS certificate product identifier. (RapidSSL, RapidSSLWildcard, QuickSSLPremium, SSL123, TrueBusinessID, SecureSite, SSLWebServer)
common_namefqdn_relaxedyesFully Qualified Domain Name.
dns_namesfqdn_relaxed[]noAdditional SAN host names. Whether a product accepts SAN hosts at all, whether they may be wildcards, and how many are allowed depends on the chosen sku; a product limit is rejected with TLSCertificateProductLimit (16009). The names must also be covered by the CSR, or the order is rejected with TLSCertificateCSRNameMismatch (16010).
csrcsryesPEM encoded certificate signing request (CSR).
dcv_methodtlsCertificateDcvMethodyes(dns-cname-token, email)
dcv_emailsstring[]no-
org_idtlsOrganizationIdnoPublic TLS organization ID
renewal_of_certificate_idtlsCertificateIdnoPublic TLS certificate ID
validity_daysintegernoPurchased base order validity in days. For renewal orders this value is not reduced by any expected remaining-validity bonus from the previous certificate. If the provider credits remaining validity, the issued certificate may end up with a longer effective lifetime than this value.
StatusTypeDescription
200tlsCertificateResponseTLS certificate order created
400ErrorInvalid request payload, TLS product, or CSR
401ErrorUnauthorized
404ErrorRenewal source TLS certificate not found
409ErrorThe TLS certificate order cannot be submitted in its current state, for example because the renewal is invalid or a usable CA organization is missing
500ErrorUnexpected error
502ErrorUpstream TLS provider error
FieldTypeRequiredDescription
successbooleanyesSuccess indicator
codeintegernoResponse/Error Code
responsetlsCertificateResponseno-
Terminal window
curl -X POST "https://api.regfish.com/tls/certificate" \
-H "x-api-key: $REGFISH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sku": "RapidSSL",
"common_name": "www.example.com",
"dns_names": [
"www.example.com"
],
"csr": "-----BEGIN CERTIFICATE REQUEST-----\nMIIC...\n-----END CERTIFICATE REQUEST-----",
"dcv_method": "dns-cname-token",
"dcv_emails": [
"string"
],
"org_id": "hdl_7K9QW3M2ZT8HJ",
"renewal_of_certificate_id": "7K9QW3M2ZT8HJ",
"validity_days": 199
}'

Fill in values - the call below updates as you type. Nothing is sent: the API does not currently allow browser requests from this domain (CORS). The API key is not stored.