Create SSL Object

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Adds an SSL certificate with defined domains to JPD’s under the subscription

Since: August 13, 2023

Security: Requires a valid tokenGenerate a Token in MyJFrog

Usage: POST 'https://my.jfrog.com/api/jmis/v1/ssl/submit

Content-Type: application/json

Produces: application/json

Sample Usage:

curl --location 'https://my.jfrog.com/api/jmis/v1/ssl/submit' \
--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",
    "domains_under_certificate": [
        {
            "url": "servername01.com",
		"server_name": "serverName01",
		"type": "platform_base_url"
  },
         "url": "servername02.com",
		"server_name": "serverName02",
		"type": "platform_base_url"
  }
    ]
}'

Sample Usage (with Docker_repository_name_override):

curl --location 'https://my.jfrog.com/api/jmis/v1/ssl/submit' \
--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",
    "domains_under_certificate": [
        {
            "url": "servername01.com",
		"server_name": "serverName01",
		"type": "platform_base_url"
  },
         "url": "servername02.com",
		"server_name": "serverName02",
		"type": "docker_sub_domain", 
		"docker_repository_name_override": "docker-local"
  }
    ]
}'

 

Sample Response:

200
OK
Content-Type: application/json
{
  “status”: “in_progress”,
  “message”: “successfully submitted”
}

Response status codes:

200: Success

400: Failed

409: Another IP action is in progress (try again in a few minutes)

403: Account is not permitted for this action

401: Unauthorized user