- URL:https://<sslcertificates-url>/importRootOrIntermediate(POST only)
- Required Capability:Default administrator role | Security and Infrastructure
- Version Introduced:10.1
Description
This 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.
Precaución:
If you would like to import a signed certificate from a CA, you need to use the Import CA Signed Certificate operation.
Request parameters
Parameter | Description |
---|---|
alias | A name for the certificate. |
rootCACertificate | The multi-part POST parameter containing the certificate file. |
f | The response format. The default response format is html. Values: html | json | pjson |
Example usage
Below is a sample POST request for importRootOrIntermediate:
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://rpubs16016.ags.esri.com/server/admin
------boundary--
JSON Response example
{"status": "success"}