SSL certificate upload fails due to validation errors in Cloud Manager

Certificate upload or update failures occur when invalid or incompatible certificate components are submitted in Cloud Manager. To fix the issue, validate the key, certificate, and chain alignment and format, then reupload corrected components.

Description description

Environment

  • Adobe Experience Manager as a Cloud Service (AEMaaCS)
  • Cloud Manager
  • Managed certificate upload interface

Issue/Symptoms

  • Private key does not match the certificate
  • Invalid private key bit length
  • Invalid private key format errors
  • Certificate revoked or superseded errors
  • HTTP 400 validation error during upload
  • Missing private key file

Root cause

Validation failures occur when the private key is missing, encrypted, incorrectly formatted, exceeds supported key size, does not match the certificate, or when the certificate chain is improperly structured or contains incorrect entries.

How to confirm

  • Review the error message displayed during certificate upload or API response
  • Check the key size using: openssl rsa -in your.key -text -noout
  • Verify the key format starts with BEGIN PRIVATE KEY
  • Validate certificate and key match using modulus comparison
  • Confirm the certificate chain excludes the leaf certificate and is correctly ordered

Resolution resolution

  1. Identify the validation error category from the upload interface or API response.

  2. If the key length exceeds supported limits, regenerate a 2048-bit RSA key and corresponding certificate.

  3. If the key format is incorrect, convert it to PKCS#8 format:

    code language-none
    openssl pkcs8 -topk8 -inform PEM -outform PEM -in oldkey.pem -out newkey.pem -nocrypt
    
  4. If the private key is encrypted, decrypt it:

    code language-none
    openssl pkcs8 -inform PEM -in encrypted.key -out unencrypted.key -nocrypt
    
  5. If the private key is missing, generate a new certificate signing request and reissue the certificate.

  6. If the certificate and key do not match, verify using modulus comparison and replace with a matching pair.

  7. Ensure the certificate chain includes only intermediate and root certificates in the correct order.

  8. Upload the corrected certificate, private key, and chain in the certificate management interface.

  9. Verify the certificate externally using SSL Labs test and confirm the updated expiration date.

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f