Description: Validates an SSL certificate by independently verifying its components, including the Private Key, Certificate Body, and Certificate Chain. It also ensures that these elements are validated against each other. This validation process is seamlessly integrated into the other SSL APIs.
Since: November 8, 2023
Security: Requires a valid token
Usage: POST 'https://my.jfrog.com/api/jmis/v1/ssl/validate'
Content-Type: application/json
Produces: application/json
Sample Usage:
curl --location 'https://my.jfrog.com/api/jmis/v1/ssl/validate' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ' \ --data '{ "certificate_name": "my-cert-name", "certificate_body": "-----BEGIN CERTIFICATE-----\nMIIETzCCAzegAwIBAgIGAYhm2M00MA0GCSqGSIb3DQEBCwUAMGkxGTAXBgNVBAMM\nEGludGVybWVkaWF0ZUNlcnQxEjAQBgNVBAoMCUFjbWUgSW5jLjELMAkGA1UECwwC\n-----END CERTIFICATE-----\n", "certificate_chain": "-----BEGIN CERTIFICATE-----\nMIIETzCCAzegAwIBAgIGAYhm2M00MA0GCSqGSIb3DQEBCwUAMGkxGTAXBgNVBAMM\nEGludGVybWVkaWF0ZUNlcnQxEjAQBgNVBAoMCUFjbWUgSW5jLjELMAkGA1UECwwC\n-----END CERTIFICATE-----\n", "certificate_private_key": "-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAqXrUanF4BBsrqqgqjlylYmMMMsmghWWwNrEgIP8TXkOkCaiA\n-----END RSA PRIVATE KEY-----\n" }'
Sample Response:
200 OK Content-Type: application/json {} 400 Bad Request Content-Type: application/json { "status": "BAD_REQUEST", "statusCode": 400, "errors": [ "Your private key does not match your certificate body" ] }