- URL:
- https://<root>/machines/<machine>/sslcertificates/importRootOrIntermediate
- Methods:
POST
- Required Capability:
- Access allowed with the "Security and Infrastructure" privilege
- Version Introduced:
- 10.1
Description
The import
operation imports a certificate authority (CA)'s root and intermediate certificates into the keystore. To create a production quality CA-signed certificate, you need to add the CA's certificates into the keystore that enables the SSL mechanism to trust the CA (and the certificates it has signed). While most of the popular CA's certificates are already available in the keystore, you can use this operation if you have a custom CA or specific intermediate certificates.
Request parameters
Parameter | Description |
---|---|
| A name for the certificate. |
| The multi-part POST parameter containing the certificate file. |
| The response format. The default response format is Values: |
Example usage
The following is a sample POST request for the import
operation:
POST /webadaptor/admin/machines/MACHINE.DOMAIN.COM/sslcertificates/importRootOrIntermediate HTTP/1.1
Host: machine.domain.com
Content-Type: multipart/form-data; boundary=----boundary
Content-Length: []
------boundary
Content-Disposition: form-data; name="alias"
rootCert
------boundary
Content-Disposition: form-data; name="rootCACertificate"; filename=""
Content-Type: application/octet-stream
rootCACertificate.cer
------boundary
Content-Disposition: form-data; name="f"
pjson
------boundary
Content-Disposition: form-data; name="csrfPreventToken"
bT_yZ3IBwUl3GviU_g_4MqE4abE9lOD37wo7g9YLta5BQzG4TaP_poDQlXZEQEEEJAQLfagZ7Uzti3KMUvFXzWD39sLwglaOb7hsAQZ-Ctx2fSoC59XiOcJYCK61i1A48TrciSQgS8bfB3bxr7WJhOpXWcQy5W6xvjoz7drVpuPTV4hLYY2QoFVL8OXRsqfE,https://machine.domain.com/server/admin
------boundary--
JSON Response example
{"status": "success"}