Sample Request/Response For Apache Server
Sample Request:
{
"certificateDetails": {
"certificateType": "PEM-.pem",
"certificateLocation": "/opt/automation",
"certificateFileName": "apachecertkeytest",
"keyLocation": "/opt/automation",
"privateKeyFileName": "apachecertkeytest.key",
"isRestartRequired":true,
"pushRootAndIntermediateCertificates": true,
"trustLocation":"/opt/automation",
"rootCertificateFileName": "apacheroottest.pem",
"intermediateCertificateFileName": [
"apacheintermediatetest.pem"
],
"privateKeyInDevice":true
},
"certificateId": "605dbd66ccb1c49e108e67e6",
"selectedProfiles": [
"ApacheLinux:@/etc/apache2:@_default_:@443:@/etc/apache2/sites-available/default-ssl.conf"
]
}
Sample Response
{
"response":[
{
"requestId":"54",
"connectorId":"ApacheLinux:@/etc/apache2:@_default_:@443:@/etc/apache2/sites-available/default-ssl.conf:@51fb6d24534926ea1d89d32bfe59b25c26d84b5e"
}
],
"message":"1 connector(s) saved and push operation has been triggered.",
"appStatusCode":null,
"tags":{
},
"headers":null
}
Note: Above given sample request and response can be followed for all three certificate
types (PEM-.crt, PEM-.cer, PEM-.pem) for the Apache server. certificateId in
the above request can be found using the search API using commonName, serial No. or
other search parameters. resourceIdpresent in Search API response is
equivalent to certificateId here.