Skip to content

Error "*The certificate subject api-test.dsis-mcp.com conflicts with an existing certificate from a different issuer*" when configuring the Custom Domain Name with mTLS

0

I am receiving the error "The certificate subject api-test.dsis-mcp.com conflicts with an existing certificate from a different issuer" when configuring the Custom Domain Name with mTLS for the API Gateway, and only having the imported certificate and the ACM Ownership Verification Certificate (OVC) present in the certificate manager. As mentioned, I only have two certificates in the Certificate store: The imported certificate and my ACM OVC. I cannot find where its picking up another certificate.

My research has indicated that there are a few potential sources for this kind of conflict:

  1. Regional differences: ACM certificates are region-specific. Check if there's a conflicting certificate in a different region. (I am only using west. Nothing in East)
  2. Recently deleted certificates: ACM may retain information about recently deleted certificates for a short period. Ensure that any conflicting certificates have been fully removed from the system. (I only have my two certificates in the cert manager. It's been 4 days since I deleted all the the other certs and the problem is still occurring)
  3. API Gateway resources: With previously set up API Gateway custom domains, there might be lingering associations with certificates that are no longer visible in ACM. Review the API Gateway custom domains and ensure there are no outdated certificate associations. (I originally had the CDN set up with an ACM certificate for the same domain name. I both edited the CDN to add the new certificate and then also deleted the CDN and recreated it from scratch. It didn't affect the problem)
  4. CloudFront distributions: If you've used edge-optimized API endpoints, CloudFront distributions created by API Gateway might still be bound to old certificates. ** (The gateway is regional and we I'm not using Cloudfront)**
  5. Application Load Balancers: For regional API endpoints, API Gateway creates ALBs that may be bound to certificates. These are not directly visible to you but could cause conflicts.** (I've deleted the CDN which should have removed any ALB's bound to the old cert. Is there any way to verify that?)**
1 Answer
0

The error you're encountering suggests that multiple Certificate Authorities have issued certificates for the same domain (api-test.dsis-mcp.com). This is a known issue in API Gateway when configuring mutual TLS (mTLS) for custom domain names.

For mTLS domains in API Gateway, there can only be one issuer per certificate subject. This means all certificates for a particular domain must come from the same Certificate Authority.

Even though you've deleted previous certificates and only have two visible in your Certificate Manager (the imported certificate and the ACM Ownership Verification Certificate), API Gateway might still be detecting a conflict. This could be due to:

  1. Lingering information about recently deleted certificates in ACM's system.
  2. Hidden associations with old certificates in API Gateway custom domains.
  3. Invisible bindings to certificates in resources created by API Gateway, such as Application Load Balancers for regional API endpoints.

To resolve this issue, you can try the following steps:

  1. Wait for a longer period (potentially up to a week) to ensure all recently deleted certificate information has been fully cleared from ACM's system.

  2. Double-check all your API Gateway custom domains across all regions to ensure there are no outdated certificate associations.

  3. If you have access to AWS Support, consider opening a ticket. They can help identify any hidden certificate conflicts that might not be visible to you.

  4. If you can prove ownership of the domain name and the problem persists with certificates you don't control, contacting AWS Support is recommended.

  5. As a last resort, you might need to obtain all certificates for this domain through a single issuer to ensure consistency and avoid conflicts in API Gateway's mTLS configuration.

Remember, for each subject in the certificate, API Gateway allows only one issuer for mutual TLS domains. Ensuring all your certificates come from the same Certificate Authority for this domain should resolve the conflict.
Sources
How to turn on mutual TLS authentication for your REST APIs in API Gateway - Amazon API Gateway
How to turn on mutual TLS authentication for your HTTP APIs in API Gateway - Amazon API Gateway

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.