Skip To Content

Import Existing Server Certificate

Description

This operation imports an existing server certificate, stored in the PKCS #12 format, into the keystore. If the certificate is a CA signed certificate, you must first import the CA Root or Intermediate certificate using the importRootCertificate operation.

Request parameters

ParameterDetails
alias

A unique name for the certificate that easily identifies it.

Example

existingCert
certPassword

The password to unlock the file containing the certificate.

Example

certPassword
certFile

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 importExistingServerCertificate:


POST /webadaptor/admin/machines/MACHINE.DOMAIN.COM/sslcertificates/importExistingServerCertificates HTTP/1.1
Host: machine.domain.com
Content-Type: multipart/form-data; boundary=----boundary

------boundary
Content-Disposition: form-data; name="certPassword"

certPassword
------boundary
Content-Disposition: form-data; name="alias"

existingCert
------boundary
Content-Disposition: form-data; name="certFile"; filename=""
Content-Type: application/octet-stream

certFile.pfx
------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"}