Import Server certificate
Api to Import Server certificate
Request
URI
PUT
https://{api_host}/api/admin/certificates/serverCertificate/httpd
COPY
Header Parameters
string
Accept
Required
application/json
string
Content-Type
Required
application/json
Request Body
To specify the certificate in a JSON payload, use the following UNIX command to convert each .pem file to a value:
awk 'NF {sub(/\r/, ""); printf "%s\n",$0;}' cert-name.pemIn this example, cert-name.pem is the name of the certificate file. The new format places all the certificate information on a single line with embedded newline characters. If you have an intermediate certificate, that certificate must also be in one-line format and add to the first certificate so that both certificates are on the same line.
InlineApiAdminCertificatesServerCertificateHttpdRequestBody of type(s) application/json
Required
{
"sslCert": "-----BEGIN CERTIFICATE-----\nMIIDWjCCAkICCQCsG5Z2qwS7OTANBgkqhkiG9w0BAQsFADBvMQswCQYDVQQGEwJV\nUzETMBEGA1UECAwKQ2FsaWZvcm5pYTESMBAGA1UEBwwJUGFsbyBBbHRvMQ8wDQYD\nVQQKDAZWTXdhcmUxEjAQBgNVBAsMCUh5YnJpZGl0eTESMBAGA1UEAwwJaGN4Lmxv\nY2FsMB4XDTE5MDcwMjA3MTczOVoXDTI0MDYzMDA3MTczOVowbzELMAkGA1UEBhMC\nVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExEjAQBgNVBAcMCVBhbG8gQWx0bzEPMA0G\nA1UECgwGVk13YXJlMRIwEAYDVQQLDAlIeWJyaWRpdHkxEjAQBgNVBAMMCWhjeC5s\nb2NhbDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM+8WF9l18v25TtO\nxM52tzVRd1aVVfTO2jNdBw870jraQ19A02fhHfe6bnnnbslZNjpDdSwNqrCTmnTE\n9fup+6L5Hd6yB5WgDmp5m+xfdMncIwumN5tOlWlyhIwVV1oh0EtrZXr4f5qPCY+e\nStC8agn8xkq0K4/qfrlZbDAZ4LA9ITtDSkPKKNDrcUIU4J2h7cVKdx0XhnM3vFqJ\nYaOAVt8xo2K29QtwZR+P85M7pv6Kq38Qcz7b5jF7Wi/uIIvfxXH92DnlAn5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wejBqrONndnwYGO2RdefSoqC3/wsjfs=\n-----END RSA PRIVATE KEY-----\n"
}
string
sslCert
Required
sslCert
string
sslCertKey
Required
sslCertKey
Responses
200
Status 200
Returns InlineApiAdminCertificatesServerCertificateHttpd200Response of type(s) application/json
{
"success": false,
"completed": false,
"time": "string",
"data": {}
}
boolean
success
Optional
success
boolean
completed
Optional
completed
string
time
Optional
time
object
data
Optional
data