Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat(pki): GoDaddy renewal via native renew endpoint + DV-SSL scoping

bernie-g7880e8bc0f0c
diff --git a/backend/src/services/certificate-authority/certificate-issuance-queue.ts b/backend/src/services/certificate-authority/certificate-issuance-queue.ts
index e8a4a384cf..9ae9e430c6 100644
--- a/backend/src/services/certificate-authority/certificate-issuance-queue.ts
+++ b/backend/src/services/certificate-authority/certificate-issuance-queue.ts
@@ -28,7 +28,10 @@ import {
resolveEffectiveApiConfig
} from "../certificate-common/certificate-issuance-utils";
import { CertificateRequestCancelledError } from "../certificate-common/certificate-request-errors";
-import { DigiCertExternalMetadataSchema } from "../certificate-common/external-metadata-schemas";
+import {
+ DigiCertExternalMetadataSchema,
+ GoDaddyExternalMetadataSchema
+} from "../certificate-common/external-metadata-schemas";
import { TCertificateRequestDALFactory } from "../certificate-request/certificate-request-dal";
import { TCertificateRequestServiceFactory } from "../certificate-request/certificate-request-service";
import { CertificateRequestStatus } from "../certificate-request/certificate-request-types";
@@ -864,6 +867,19 @@ export const certificateIssuanceQueueFactory = ({
await setPending("Submitting the request to GoDaddy");
+ let renewalOfCertificateId: string | undefined;
+ if (isRenewal && originalCertificateId) {
+ const originalCert = await certificateDAL.findById(originalCertificateId);
+ const parsedMetadata = GoDaddyExternalMetadataSchema.safeParse(originalCert?.externalMetadata);
+ if (parsedMetadata.success) {
+ renewalOfCertificateId = parsedMetadata.data.certificateId;
+ } else {
+ logger.warn(
+ `GoDaddy renewal requested but previous certificate has no GoDaddy reference in externalMetadata — falling back to a new order [originalCertificateId=${originalCertificateId}]`
+ );
+ }
+ }
+
if (await isCancelled()) {
logger.info(`Cancelled before GoDaddy order [certificateRequestId=${certificateRequestId}]`);
return;
@@ -876,7 +892,8 @@ export const certificateIssuanceQueueFactory = ({
signatureAlgorithm,
keyAlgorithm: keyAlgorithm as CertKeyAlgorithm,
ttl,
- ...(csr && { csr })
+ ...(csr && { csr }),
+ ...(renewalOfCertificateId && { renewalOfCertificateId })
});
if (await isCancelled()) {
diff --git a/backend/src/services/certificate-authority/godaddy/godaddy-api-client.ts b/backend/src/services/certificate-authority/godaddy/godaddy-api-client.ts
index 24aa7981cc..ad6c8f16fb 100644
--- a/backend/src/services/certificate-authority/godaddy/godaddy-api-client.ts
+++ b/backend/src/services/certificate-authority/godaddy/godaddy-api-client.ts
@@ -17,6 +17,14 @@ type TCreateCertificateResponse = {
certificateId: string;
};
+type TRenewCertificateRequest = {
+ commonName?: string;
+ csr?: string;
+ period?: number;
+ rootType?: string;
+ subjectAlternativeNames?: string[];
+};
+
type TGetCertificateResponse = {
certificateId: string;
status: string;
@@ -79,6 +87,14 @@ export const createGoDaddyApiClient = (authHeader: string, baseURL: string) => {
return data;
}, `certificate download for ${certificateId}`);
+ // GoDaddy renewal operates on the existing certificate id (POST .../renew → 202, no body),
+ // so the renewed certificate keeps the same GoDaddy id. Only available 60 days before to 30 days
+ // after the previous certificate's expiry — outside that window GoDaddy rejects the request.
+ const renewCertificate = async (certificateId: string, body: TRenewCertificateRequest) =>
+ wrap(async () => {
+ await request.post(`${baseURL}/v1/certificates/${certificateId}/renew`, body, { headers });
+ }, `certificate renewal for ${certificateId}`);
+
const revokeCertificate = async (certificateId: string, reason: string) =>
wrap(async () => {
await request.post(`${baseURL}/v1/certificates/${certificateId}/revoke`, { reason }, { headers });
@@ -93,6 +109,7 @@ export const createGoDaddyApiClient = (authHeader: string, baseURL: string) => {
createCertificate,
getCertificate,
downloadCertificate,
+ renewCertificate,
revokeCertificate,
cancelCertificate
};
diff --git a/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-enums.ts b/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-enums.ts
index 1a654803a7..8e5bf5af4c 100644
--- a/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-enums.ts
+++ b/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-enums.ts
@@ -1,6 +1,5 @@
export enum GoDaddyProductType {
- DV_SSL = "DV_SSL",
- DV_WILDCARD_SSL = "DV_WILDCARD_SSL"
+ DV_SSL = "DV_SSL"
}
export enum GoDaddyCertificateStatus {
diff --git a/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-fns.ts b/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-fns.ts
index 7378e29c21..1a20d1807c 100644
--- a/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-fns.ts
+++ b/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-fns.ts
@@ -46,7 +46,7 @@ import {
TGoDaddyCertificateRequestMetadata,
TUpdateGoDaddyCertificateAuthorityDTO
} from "./godaddy-certificate-authority-types";
-import { validateGoDaddyIssuanceInputs } from "./godaddy-certificate-authority-validators";
+import { isGoDaddyCoveredSan, validateGoDaddyIssuanceInputs } from "./godaddy-certificate-authority-validators";
type TGoDaddyCertificateAuthorityFnsDeps = {
appConnectionDAL: Pick<TAppConnectionDALFactory, "findById">;
@@ -66,6 +66,16 @@ type TGoDaddyCertificateAuthorityFnsDeps = {
projectDAL: Pick<TProjectDALFactory, "findById" | "findOne" | "updateById" | "transaction">;
};
+// GoDaddy renewal reuses the same certificate id and only issues a genuinely renewed certificate
+// (new serial) near expiry; until then GET/download return the still-current certificate. This signals
+// that case so the poller keeps the request pending instead of trying to attach a duplicate serial.
+export class GoDaddyRenewalNotReadyError extends Error {
+ constructor(message: string) {
+ super(message);
+ this.name = "GoDaddyRenewalNotReadyError";
+ }
+}
+
const GODADDY_ROOT_TYPE = "GODADDY_SHA_2";
// GoDaddy revoke reasons accepted by POST /v1/certificates/{id}/revoke
@@ -398,7 +408,8 @@ export const GoDaddyCertificateAuthorityFns = ({
altNames = [],
keyAlgorithm = CertKeyAlgorithm.RSA_2048,
csr,
- ttl
+ ttl,
+ renewalOfCertificateId
}: {
caId: string;
commonName: string;
@@ -407,6 +418,7 @@ export const GoDaddyCertificateAuthorityFns = ({
keyAlgorithm?: CertKeyAlgorithm;
csr?: string;
ttl: string;
+ renewalOfCertificateId?: string;
}): Promise<{
metadata: TGoDaddyCertificateRequestMetadata;
privateKey: string;
@@ -433,6 +445,17 @@ export const GoDaddyCertificateAuthorityFns = ({
});
}
+ // GoDaddy DV products cover the common name and its `www.` host (GoDaddy adds the www SAN itself);
+ // any other domain isn't supported. Callers validate this earlier — guard here too so we never
+ // silently issue against an unexpected domain.
+ const extraSans = altNames.filter((value) => !isGoDaddyCoveredSan(value, effectiveCommonName));
+ if (extraSans.length > 0) {
+ throw new BadRequestError({
+ message:
+ "GoDaddy DV certificates cover only the common name and its www subdomain; additional domains aren't supported"
+ });
+ }
+
let csrPem = csr?.trim();
let privateKeyPem = "";
@@ -442,18 +465,13 @@ export const GoDaddyCertificateAuthorityFns = ({
const skLeafObj = crypto.nativeCrypto.KeyObject.from(leafKeys.privateKey);
privateKeyPem = skLeafObj.export({ format: "pem", type: "pkcs8" }) as string;
+ // CN only: GoDaddy DV coverage is product-driven (CN + auto-added www), so we don't put SANs in
+ // the CSR. This matches the original order and keeps renewals (which reconstruct the issued
+ // cert's www SAN) from sending a CSR GoDaddy didn't get on first issuance.
const csrObj = await x509.Pkcs10CertificateRequestGenerator.create({
name: `CN=${effectiveCommonName}`,
keys: leafKeys,
- signingAlgorithm: alg,
- ...(altNames.length > 0 && {
- extensions: [
- new x509.SubjectAlternativeNameExtension(
- altNames.map((value) => ({ type: "dns" as TAltNameType, value })),
- false
- )
- ]
- })
+ signingAlgorithm: alg
});
csrPem = csrObj.toString("pem");
}
@@ -465,33 +483,40 @@ export const GoDaddyCertificateAuthorityFns = ({
);
const client = createGoDaddyApiClient(authHeader, baseUrl);
- // GoDaddy DV products are single-domain (CN only); additional SANs aren't supported and would be
- // rejected upstream. Callers validate this earlier — guard here too so we never silently drop SANs.
- const extraSans = altNames.filter((value) => value.toLowerCase() !== effectiveCommonName.toLowerCase());
- if (extraSans.length > 0) {
- throw new BadRequestError({
- message: "GoDaddy DV certificates are single-domain and don't support additional SANs"
+ const period = parseTtlToYears(ttl);
+
+ let certificateId: string;
+ if (renewalOfCertificateId) {
+ // Renewal reuses the existing GoDaddy certificate id; we still generate a fresh CSR/key so the
+ // renewed certificate is re-keyed and we capture its private key locally.
+ await client.renewCertificate(renewalOfCertificateId, {
+ commonName: effectiveCommonName,
+ csr: csrPem,
+ period,
+ rootType: GODADDY_ROOT_TYPE
+ });
+ certificateId = renewalOfCertificateId;
+ } else {
+ const orderResponse = await client.createCertificate({
+ commonName: effectiveCommonName,
+ csr: csrPem,
+ period,
+ productType,
+ rootType: GODADDY_ROOT_TYPE
});
+ certificateId = orderResponse.certificateId;
}
- const orderResponse = await client.createCertificate({
- commonName: effectiveCommonName,
- csr: csrPem,
- period: parseTtlToYears(ttl),
- productType,
- rootType: GODADDY_ROOT_TYPE
- });
-
return {
metadata: {
godaddy: {
- certificateId: orderResponse.certificateId,
+ certificateId,
productType,
orderPlacedAt: new Date().toISOString()
}
},
privateKey: privateKeyPem,
- certificateId: orderResponse.certificateId
+ certificateId
};
};
@@ -547,6 +572,15 @@ export const GoDaddyCertificateAuthorityFns = ({
const certObj = new x509.X509Certificate(leaf);
const issued = extractIssuedCertificateFields(certObj);
+ if (isRenewal && originalCertificateId) {
+ const original = await certificateDAL.findOne({ id: originalCertificateId });
+ if (original?.serialNumber && original.serialNumber === certObj.serialNumber) {
+ throw new GoDaddyRenewalNotReadyError(
+ `GoDaddy has not issued a renewed certificate yet — still serving serial ${certObj.serialNumber} [originalCertificateId=${originalCertificateId}]`
+ );
+ }
+ }
+
const certificateManagerKmsId = await getProjectKmsCertificateKeyId({
projectId: ca.projectId,
projectDAL,
diff --git a/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-processor.ts b/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-processor.ts
index 89912ba0f8..00143d2971 100644
--- a/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-processor.ts
+++ b/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-processor.ts
@@ -25,6 +25,7 @@ import {
} from "./godaddy-certificate-authority-enums";
import {
castDbEntryToGoDaddyCertificateAuthority,
+ GoDaddyRenewalNotReadyError,
TGoDaddyCertificateAuthorityFns
} from "./godaddy-certificate-authority-fns";
import { GoDaddyCertificateRequestMetadataSchema } from "./godaddy-certificate-authority-schemas";
@@ -143,37 +144,48 @@ export const processGoDaddyPendingValidationRequest = async (
const isFinalisable = GODADDY_FINAL_ISSUED_STATUSES.some((status) => status === orderStatus);
if (isFinalisable) {
- const { certificateId } = await deps.godaddyFns.fetchAndAttachIssuedCertificate({
- caId: request.caId,
- certificateRequest: {
- id: request.id,
- profileId: request.profileId,
- commonName: request.commonName,
- altNames: (request.altNames as string | null) ?? null,
- keyUsages: request.keyUsages,
- extendedKeyUsages: request.extendedKeyUsages,
- keyAlgorithm: request.keyAlgorithm,
- signatureAlgorithm: request.signatureAlgorithm
- },
- godaddyCertificateId: parsed.godaddy.certificateId,
- encryptedPrivateKey: request.encryptedPrivateKey ?? undefined,
- isRenewal: parsed.godaddy.isRenewal,
- originalCertificateId: parsed.godaddy.originalCertificateId,
- applicationId: request.applicationId
- });
-
- await deps.certificateRequestService.attachCertificateToRequest({
- certificateRequestId: request.id,
- certificateId
- });
- await copyMetadataFromRequestToCertificate(deps.resourceMetadataDAL, {
- certificateRequestId: request.id,
- certificateId
- });
- logger.info(
- `GoDaddy certificate issued, attached certificate [certificateRequestId=${request.id}] [certificateId=${certificateId}]`
- );
- return { status: CertificateRequestStatus.ISSUED, certificateId, orderStatus };
+ try {
+ const { certificateId } = await deps.godaddyFns.fetchAndAttachIssuedCertificate({
+ caId: request.caId,
+ certificateRequest: {
+ id: request.id,
+ profileId: request.profileId,
+ commonName: request.commonName,
+ altNames: (request.altNames as string | null) ?? null,
+ keyUsages: request.keyUsages,
+ extendedKeyUsages: request.extendedKeyUsages,
+ keyAlgorithm: request.keyAlgorithm,
+ signatureAlgorithm: request.signatureAlgorithm
+ },
+ godaddyCertificateId: parsed.godaddy.certificateId,
+ encryptedPrivateKey: request.encryptedPrivateKey ?? undefined,
+ isRenewal: parsed.godaddy.isRenewal,
+ originalCertificateId: parsed.godaddy.originalCertificateId,
+ applicationId: request.applicationId
+ });
+
+ await deps.certificateRequestService.attachCertificateToRequest({
+ certificateRequestId: request.id,
+ certificateId
+ });
+ await copyMetadataFromRequestToCertificate(deps.resourceMetadataDAL, {
+ certificateRequestId: request.id,
+ certificateId
+ });
+ logger.info(
+ `GoDaddy certificate issued, attached certificate [certificateRequestId=${request.id}] [certificateId=${certificateId}]`
+ );
+ return { status: CertificateRequestStatus.ISSUED, certificateId, orderStatus };
+ } catch (error) {
+ // A renewal can report ISSUED/CURRENT while GoDaddy is still serving the previous certificate
+ // (it only re-issues with a new serial near expiry). Stay pending rather than failing.
+ if (!(error instanceof GoDaddyRenewalNotReadyError)) {
+ throw error;
+ }
+ logger.info(
+ `GoDaddy renewal accepted but not yet re-issued, staying pending [certificateRequestId=${request.id}]`
+ );
+ }
}
if (GODADDY_TERMINAL_FAILURE_STATUSES.some((status) => status === orderStatus)) {
diff --git a/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-schemas.ts b/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-schemas.ts
index f777b9ffb0..ce62df5507 100644
--- a/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-schemas.ts
+++ b/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-schemas.ts
@@ -12,7 +12,7 @@ export const GoDaddyCertificateAuthorityConfigurationSchema = z.object({
appConnectionId: z.string().uuid().trim().describe("GoDaddy App Connection ID"),
productType: z
.nativeEnum(GoDaddyProductType)
- .describe("The GoDaddy DV product used for issuance (DV_SSL for single domain, DV_WILDCARD_SSL for wildcard)")
+ .describe("The GoDaddy DV product used for issuance (DV_SSL for a single domain)")
});
export const GoDaddyCertificateAuthoritySchema = BaseCertificateAuthoritySchema.extend({
diff --git a/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-validators.ts b/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-validators.ts
index 224da4734b..2a36ed2f36 100644
--- a/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-validators.ts
+++ b/backend/src/services/certificate-authority/godaddy/godaddy-certificate-authority-validators.ts
@@ -8,12 +8,23 @@ const GODADDY_ALLOWED_KEY_ALGORITHMS = new Set<string>([
CertKeyAlgorithm.RSA_4096
]);
+// GoDaddy DV products cover the common name plus its `www.` host — GoDaddy adds the www SAN to the
+// issued certificate automatically — so both are permitted. Any other domain is out of scope.
+export const isGoDaddyCoveredSan = (value: string, commonName?: string | null): boolean => {
+ const san = value.trim().toLowerCase();
+ const cn = (commonName ?? "").trim().toLowerCase();
+ if (!cn || !san) return false;
+ return san === cn || san === `www.${cn}` || cn === `www.${san}`;
+};
+
export const validateGoDaddyIssuanceInputs = ({
keyAlgorithm,
- altNames
+ altNames,
+ commonName
}: {
keyAlgorithm?: string | null;
altNames?: { type: CertSubjectAlternativeNameType; value: string }[];
+ commonName?: string | null;
}) => {
// GoDaddy's Certificates API only accepts RSA CSRs — ECDSA/PQC keys are rejected upstream
// with a cryptic "This CSR was created with an invalid algorithm." Surface a clear error first.
@@ -23,8 +34,8 @@ export const validateGoDaddyIssuanceInputs = ({
});
}
- // The GoDaddy DV products we support (single-domain, wildcard) cover a single DNS identity — they
- // accept neither additional SANs nor non-DNS SAN types (email/IP/URI), which GoDaddy would reject.
+ // The GoDaddy DV SSL product we support is single-domain: it accepts only DNS-name identities and
+ // covers the common name plus its `www.` host. Reject non-DNS SAN types and any other domain.
if (altNames && altNames.length > 0) {
const nonDnsSan = altNames.find((san) => san.type !== CertSubjectAlternativeNameType.DNS_NAME);
if (nonDnsSan) {
@@ -32,9 +43,11 @@ export const validateGoDaddyIssuanceInputs = ({
message: `GoDaddy only supports DNS-name SANs; received a ${nonDnsSan.type} SAN ("${nonDnsSan.value}"). Use a private CA for email/IP/URI identities.`
});
}
- throw new BadRequestError({
- message:
- "GoDaddy DV certificates are single-domain and don't support additional SANs. Put the domain in the Common Name, or use a multi-domain CA."
- });
+ const extraSan = altNames.find((san) => !isGoDaddyCoveredSan(san.value, commonName));
+ if (extraSan) {
+ throw new BadRequestError({
+ message: `GoDaddy DV certificates cover only the common name and its www subdomain; additional domain "${extraSan.value}" is not supported. Use a multi-domain CA.`
+ });
+ }
}
};
diff --git a/backend/src/services/certificate-v3/certificate-approval-fns.ts b/backend/src/services/certificate-v3/certificate-approval-fns.ts
index d191cc718c..d5385e32d5 100644
--- a/backend/src/services/certificate-v3/certificate-approval-fns.ts
+++ b/backend/src/services/certificate-v3/certificate-approval-fns.ts
@@ -496,7 +496,8 @@ export const certificateApprovalServiceFactory = (
if (caType === CaType.GODADDY) {
validateGoDaddyIssuanceInputs({
keyAlgorithm: certRequest.keyAlgorithm || undefined,
- altNames: altNames ?? undefined
+ altNames: altNames ?? undefined,
+ commonName: certRequest.commonName || undefined
});
}
diff --git a/backend/src/services/certificate-v3/certificate-v3-service.ts b/backend/src/services/certificate-v3/certificate-v3-service.ts
index 1e0661faa7..d732255ed9 100644
--- a/backend/src/services/certificate-v3/certificate-v3-service.ts
+++ b/backend/src/services/certificate-v3/certificate-v3-service.ts
@@ -2188,7 +2188,8 @@ export const certificateV3ServiceFactory = ({
if (caType === CaType.GODADDY) {
validateGoDaddyIssuanceInputs({
keyAlgorithm: certificateOrder.keyAlgorithm,
- altNames: certificateOrder.altNames
+ altNames: certificateOrder.altNames,
+ commonName: certificateOrder.commonName
});
}
diff --git a/docs/documentation/platform/pki/ca/godaddy.mdx b/docs/documentation/platform/pki/ca/godaddy.mdx
index 14c1bd7053..a7b657a597 100644
--- a/docs/documentation/platform/pki/ca/godaddy.mdx
+++ b/docs/documentation/platform/pki/ca/godaddy.mdx
@@ -5,26 +5,26 @@ description: "Issue Domain Validated (DV) certificates from GoDaddy using the Go
## Concept
-Infisical can issue Domain Validated (DV) TLS certificates directly from [GoDaddy](https://www.godaddy.com/) using the [GoDaddy Certificates API](https://developer.godaddy.com/doc/endpoint/certificates). It supports single-domain (`DV_SSL`) and wildcard (`DV_WILDCARD_SSL`) products.
+Infisical can issue Domain Validated (DV) TLS certificates directly from [GoDaddy](https://www.godaddy.com/) using the [GoDaddy Certificates API](https://developer.godaddy.com/doc/endpoint/certificates). It supports the single-domain `DV_SSL` product.
## Prerequisites
- A [GoDaddy App Connection](/integrations/app-connections/godaddy) with validated production API credentials.
-- **An available certificate product in your GoDaddy account.** GoDaddy's API does not purchase certificates — it consumes a product you already own. Buy a **DV SSL** certificate (single-domain or wildcard, matching the CA's product type) from GoDaddy's SSL storefront and leave it un-set-up so the API can claim it.
-- A **custom certificate policy** allowing an **RSA** key with **DNS-name** SANs (see below — the built-in *TLS Server* preset is ECDSA-only and won't work).
+- **An available certificate product in your GoDaddy account.** GoDaddy's API does not purchase certificates, it consumes a product you already own. Buy a **DV SSL** certificate (single-domain) from GoDaddy's SSL storefront and leave it un-set-up so the API can claim it.
+- A certificate policy that allows an **RSA** key with **DNS-name** SANs. The built-in **TLS Server** preset allows both ECDSA and RSA, so it works as long as you select an RSA key (GoDaddy rejects ECDSA). See below.
<Warning>
**GoDaddy is RSA-only and single-domain.** Two policy requirements trip people up:
- - **RSA keys only.** An ECDSA or post-quantum key fails with `This CSR was created with an invalid algorithm`. The built-in **TLS Server Certificate** preset is **ECDSA-only**, so it won't work for GoDaddy — create a **custom policy** with an RSA key (e.g. RSA 2048), an `RSA-SHA256` signature, **DNS Name** SANs, and the **Server Authentication** EKU.
- - **Single DNS name only.** GoDaddy DV products cover one domain (the Common Name). Additional SANs — and non-DNS SAN types (email, IP, URI) — are rejected; put the domain in the Common Name.
+ - **RSA keys only.** An ECDSA or post-quantum key fails with `This CSR was created with an invalid algorithm`. The built-in **TLS Server Certificate** preset allows both ECDSA and RSA, so select an **RSA** key (e.g. RSA 2048) with an `RSA-SHA256` signature, **DNS Name** SANs, and the **Server Authentication** EKU. The preset defaults to ECDSA, which GoDaddy rejects, so you must switch it.
+ - **Single domain (plus its www).** GoDaddy DV products cover the Common Name and its `www.` host, which GoDaddy adds automatically. Other additional domains, and non-DNS SAN types (email, IP, URI), are rejected. Put the primary domain in the Common Name.
</Warning>
## Set up the certificate policy
-GoDaddy needs a **server-certificate policy that uses RSA**. Because the built-in `TLS Server Certificate` preset is ECDSA-only, create a custom one in **Settings → Certificate Policies → Create Policy**:
+GoDaddy needs a **server-certificate policy that uses RSA**. The built-in `TLS Server Certificate` preset allows both ECDSA and RSA, so you can start from it and select RSA, or create a custom policy in **Settings → Certificate Policies → Create Policy**. Either way, configure:
-- **Key algorithm:** RSA 2048 (RSA 3072/4096 also work) — *not ECDSA*
+- **Key algorithm:** RSA 2048 (RSA 3072/4096 also work), not ECDSA (the preset selects ECDSA by default)
- **Signature algorithm:** RSA-SHA256
- **SAN types:** DNS Name
- **Extended Key Usage:** Server Authentication
@@ -43,8 +43,8 @@ Then create a [certificate profile](/documentation/platform/pki/settings/profile
<Step title="Create the External CA">
In **Certificate Manager**, go to **Settings → Certificate Authorities**, click **Create CA** in the External Certificate Authorities section, choose **GoDaddy** as the type, and fill out the form:
- - **App Connection** — the GoDaddy connection you created
- - **Product** — `DV SSL` for a single domain, or `DV Wildcard SSL` for `*.example.com`
+ - **App Connection**: the GoDaddy connection you created
+ - **Product**: `DV SSL` (single domain)
</Step>
</Steps>
</Tab>
@@ -87,26 +87,49 @@ When you request a certificate through a GoDaddy CA, the request moves through t
<AccordionGroup>
<Accordion title='Why does issuance fail with "You do not have an available product"?'>
- GoDaddy's Certificates API consumes a certificate product you already own — it does not purchase
- one. Buy a DV SSL certificate matching the CA's product type from GoDaddy's SSL storefront and
- leave it un-set-up; the next request will claim it. A pending order holds the product, so cancel
- an unwanted pending order (via GoDaddy's API) to return the credit to available.
+ GoDaddy's Certificates API consumes a certificate product you already own; it does not purchase
+ one. Buy a DV SSL certificate from GoDaddy's SSL storefront and leave it un-set-up; the next
+ request will claim it. A pending order holds the product, so cancel an unwanted pending order on
+ GoDaddy's side to return the credit to available.
</Accordion>
<Accordion title='Why does issuance fail with "This CSR was created with an invalid algorithm"?'>
- GoDaddy only accepts RSA CSRs. The built-in `TLS Server Certificate` policy preset is ECDSA-only,
- so create a custom policy with an RSA key algorithm (e.g. RSA 2048 / RSA-SHA256) and request again.
+ GoDaddy only accepts RSA CSRs. The built-in `TLS Server Certificate` policy preset allows both
+ ECDSA and RSA but defaults to ECDSA, so make sure the policy selects an RSA key algorithm
+ (e.g. RSA 2048 / RSA-SHA256) and request again.
</Accordion>
<Accordion title="Can a GoDaddy certificate include additional or email/IP SANs?">
- No. The supported GoDaddy DV products are single-domain — they cover only the Common Name (one DNS
- name). Additional SANs, and non-DNS SAN types (email, IP, URI), are rejected. For multiple domains
- use a multi-domain CA; for email/identity SANs use a private (S/MIME) CA.
+ The supported GoDaddy DV products cover the Common Name and its `www.` host (GoDaddy adds the www
+ SAN automatically). Other additional domains, and non-DNS SAN types (email, IP, URI), are rejected.
+ For multiple unrelated domains use a multi-domain CA; for email/identity SANs use a private
+ (S/MIME) CA.
</Accordion>
<Accordion title="What happens when I revoke a GoDaddy-issued certificate in Infisical?">
Revoking the certificate in Infisical marks it `Revoked` in the local inventory **and** submits
- a revocation request to GoDaddy against the underlying certificate.
+ a revocation request to GoDaddy against the underlying certificate. This is one-way: revoking a
+ certificate directly on GoDaddy's side is not synced back, so its status in Infisical will not
+ update automatically.
+ </Accordion>
+ <Accordion title="How does renewal work for GoDaddy certificates?">
+ Renewing in Infisical calls GoDaddy's native renew endpoint against the existing certificate
+ rather than placing a brand-new order. GoDaddy only renews a certificate from 60 days before to
+ 30 days after its expiry, and only then issues a replacement certificate. If you renew earlier
+ than that window, GoDaddy keeps serving the current certificate, so the request stays in
+ `Pending Validation` until GoDaddy issues the renewed certificate (or the request times out).
+ Renewing extends validity, which on GoDaddy's side may require an available product or a paid
+ renewal, so make sure your account has one. As with a new order, GoDaddy may require domain
+ control validation again before the renewed certificate is issued, after which Infisical
+ downloads it automatically.
</Accordion>
</AccordionGroup>
+## Limitations
+
+- **DV SSL only.** Single-domain Domain Validated certificates (`DV_SSL`), covering the Common Name and its `www.` host. Multi-domain, wildcard, OV, and EV products are not supported.
+- **RSA keys only.** GoDaddy rejects ECDSA and post-quantum CSRs.
+- **Renewal completes only near expiry.** GoDaddy issues a replacement certificate only within its renewal window (60 days before to 30 days after expiry). Renewing earlier leaves the request pending until then.
+- **Revocation is outbound only.** Infisical can revoke on GoDaddy, but certificates revoked directly on GoDaddy are not synced back into Infisical.
+- **Cancellation is local only.** Cancelling a pending request in Infisical stops local tracking but does not cancel the order on GoDaddy. To free a held product credit, cancel the pending order on GoDaddy's side.
+
## What's Next
Now that your GoDaddy CA is configured, set up the infrastructure to issue certificates:
@@ -119,7 +142,7 @@ Now that your GoDaddy CA is configured, set up the infrastructure to issue certi
Create an Application, attach a profile, and configure enrollment.
</Card>
<Card title="Enrollment Methods" icon="arrow-right-to-arc" href="/documentation/platform/pki/applications/enrollment-methods/overview">
- Choose how certificates are requested — API, ACME, EST, or SCEP.
+ Choose how certificates are requested: API, ACME, EST, or SCEP.
</Card>
<Card title="Quick Start" icon="rocket" href="/documentation/platform/pki/quick-starts/issue-first-certificate">
Issue your first certificate end-to-end.
diff --git a/docs/integrations/app-connections/godaddy.mdx b/docs/integrations/app-connections/godaddy.mdx
index 3b279458ad..55c48d4821 100644
--- a/docs/integrations/app-connections/godaddy.mdx
+++ b/docs/integrations/app-connections/godaddy.mdx
@@ -14,7 +14,7 @@ Infisical supports connecting to the [GoDaddy Certificates API](https://develope
## Prerequisites
- A GoDaddy account with API access
-- A **production** API Key and Secret (the first key you create on GoDaddy is an OTE/test key — create a separate production key)
+- A **production** API Key and Secret (the first key you create on GoDaddy is an OTE/test key, so create a separate production key)
## Create a GoDaddy API Key
@@ -25,7 +25,7 @@ Infisical supports connecting to the [GoDaddy Certificates API](https://develope
<Step title="Create a production key">
Click **Create New API Key**, give it a name (e.g. `infisical`), and select **Production** under **Environment**. Click **Next**.
- Copy both the **Key** and the **Secret** — the secret is shown only once.
+ Copy both the **Key** and the **Secret**. The secret is shown only once.
</Step>
</Steps>
diff --git a/frontend/src/hooks/api/ca/enums.tsx b/frontend/src/hooks/api/ca/enums.tsx
index 3274aaac69..148d47bcbf 100644
--- a/frontend/src/hooks/api/ca/enums.tsx
+++ b/frontend/src/hooks/api/ca/enums.tsx
@@ -51,6 +51,5 @@ export enum CaSigningConfigType {
}
export enum GoDaddyProductType {
- DV_SSL = "DV_SSL",
- DV_WILDCARD_SSL = "DV_WILDCARD_SSL"
+ DV_SSL = "DV_SSL"
}
diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaModal.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaModal.tsx
index c97088d0be..2dc9ac1bcc 100644
--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaModal.tsx
@@ -1359,7 +1359,7 @@ export const ExternalCaModal = ({ popUp, handlePopUpToggle }: Props) => {
isError={Boolean(error)}
errorText={error?.message}
isRequired
- tooltipText="Domain Validated SSL product to use for issuance. Wildcard issues certificates for *.example.com."
+ tooltipText="Domain Validated SSL product to use for issuance (single domain)."
>
<Select
value={value}
@@ -1371,9 +1371,6 @@ export const ExternalCaModal = ({ popUp, handlePopUpToggle }: Props) => {
<SelectItem value={GoDaddyProductType.DV_SSL}>
DV SSL (single domain)
</SelectItem>
- <SelectItem value={GoDaddyProductType.DV_WILDCARD_SSL}>
- DV Wildcard SSL
- </SelectItem>
</Select>
</FormControl>
)}
diff --git a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/shared/policy-presets.ts b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/shared/policy-presets.ts
index 0fb2a3a6fe..fe385d2b35 100644
--- a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/shared/policy-presets.ts
+++ b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/shared/policy-presets.ts
@@ -36,7 +36,7 @@ export const CERTIFICATE_POLICY_PRESETS: CertificatePolicyPreset[] = [
},
extendedKeyUsages: {
requiredUsages: [CertExtendedKeyUsageType.SERVER_AUTH],
- optionalUsages: [CertExtendedKeyUsageType.SERVER_AUTH]
+ optionalUsages: [CertExtendedKeyUsageType.SERVER_AUTH, CertExtendedKeyUsageType.CLIENT_AUTH]
},
validity: {
maxDuration: {
@@ -64,10 +64,13 @@ export const CERTIFICATE_POLICY_PRESETS: CertificatePolicyPreset[] = [
}
],
signatureAlgorithm: {
- allowedAlgorithms: [...ALGORITHM_FAMILIES.ECDSA.signature]
+ allowedAlgorithms: [
+ ...ALGORITHM_FAMILIES.ECDSA.signature,
+ ...ALGORITHM_FAMILIES.RSA.signature
+ ]
},
keyAlgorithm: {
- allowedKeyTypes: [...ALGORITHM_FAMILIES.ECDSA.key]
+ allowedKeyTypes: [...ALGORITHM_FAMILIES.ECDSA.key, ...ALGORITHM_FAMILIES.RSA.key]
}
}
},