Zum Hauptinhalt springen

Check the replacement of a Certificate

POST/certificates/{certificateId}/actions/check-replace-certificate/
v2
POST
ssl-check-replace-certificate

Checks the replacement of a Certificate and shows differences between the current and the new Certificate.

Request

  • certificateIdstring (uuid)
    required

Responses

application/json

OK

  • changesobject
    • commonNameobject
      • newValuestring
        required
      • oldValuestring
        required
    • dnsNamesobject
      • addedValuesarray of string
        required
        • Array[
        • *string
        • ]
      • removedValuesarray of string
        required
        • Array[
        • *string
        • ]
      • valuesarray of string
        required
        • Array[
        • *string
        • ]
    • issuerobject
      • newValuestring
        required
      • oldValuestring
        required
    • validFromobject
      • newValuestring (date-time)
        required
      • oldValuestring (date-time)
        required
    • validToobject
      • newValuestring (date-time)
        required
      • oldValuestring (date-time)
        required
  • errorsarray of object
    • Array[
    • *object
      • messageone of 18 alternatives
        required
        • Alternative"certificate_read_failed"

          Failed to read the certificate.

        • *"certificate_read_failed"

          Failed to read the certificate.

        • Alternative"certificate_decode_failed"

          Failed to decode the certificate.

        • *"certificate_decode_failed"

          Failed to decode the certificate.

        • Alternative"certificate_parsing_failed"

          An error occurred while parsing the certificate.

        • *"certificate_parsing_failed"

          An error occurred while parsing the certificate.

        • Alternative"certificate_self_signed"

          The certificate is self-signed.

        • *"certificate_self_signed"

          The certificate is self-signed.

        • Alternative"certificate_not_authorized_to_sign"

          The certificate is not authorized to sign.

        • *"certificate_not_authorized_to_sign"

          The certificate is not authorized to sign.

        • Alternative"certificate_expired"

          The certificate has expired.

        • *"certificate_expired"

          The certificate has expired.

        • Alternative"ca_not_authorized_for_this_name"

          The Certificate Authority (CA) is not authorized for this name.

        • *"ca_not_authorized_for_this_name"

          The Certificate Authority (CA) is not authorized for this name.

        • Alternative"too_many_intermediates"

          There are too many intermediate certificates.

        • *"too_many_intermediates"

          There are too many intermediate certificates.

        • Alternative"incompatible_usage"

          The certificate's usage is incompatible.

        • *"incompatible_usage"

          The certificate's usage is incompatible.

        • Alternative"unknown_authority"

          The certificate is signed by an unknown authority.

        • *"unknown_authority"

          The certificate is signed by an unknown authority.

        • Alternative"private_key_read_failed"

          Failed to read the private key.

        • *"private_key_read_failed"

          Failed to read the private key.

        • Alternative"private_key_decode_failed"

          Failed to decode the private key.

        • *"private_key_decode_failed"

          Failed to decode the private key.

        • Alternative"private_key_parse_failed"

          An error occurred while parsing the private key.

        • *"private_key_parse_failed"

          An error occurred while parsing the private key.

        • Alternative"private_key_encrypted"

          The private key is encrypted.

        • *"private_key_encrypted"

          The private key is encrypted.

        • Alternative"private_key_not_rsa"

          The private key is not RSA.

        • *"private_key_not_rsa"

          The private key is not RSA.

        • Alternative"private_key_mismatch"

          The private key does not match the certificate.

        • *"private_key_mismatch"

          The private key does not match the certificate.

        • Alternative"unknown_cloudflare_error"

          An unknown error occurred related to Cloudflare.

        • *"unknown_cloudflare_error"

          An unknown error occurred related to Cloudflare.

        • Alternative"unknown"

          An unknown error occurred.

        • *"unknown"

          An unknown error occurred.

    • ]
  • isReplaceableboolean
    required

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"certificate":"string","privateKey":"string"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/certificates/f0f86186-0a5a-45b2-aa33-502777496347/actions/check-replace-certificate