Sample Request/Response for Tomcat Server
Sample Request
{
"certificateDetails": {
"certificateType": "PEM-.pem",
"certificateLocation": "/opt/automation",
"certificateFileName": "tomcatcertkeytest",
"keyLocation": "/opt/automation",
"privateKeyFileName": "tomcatcertkeytest.key",
"pushRootAndIntermediateCertificates": true,
"rootCertificateFileName": "tomcatroottest.pem",
"intermediateCertificateFileName": [
"tomcatintermediatetest.pem"
]
},
"certificateId": "605dbd66ccb1c49e108e67e6",
"selectedProfiles": [
"TomcatLinux:@8443:@localhost:@localhost:"
]
}
Sample Response
{
"response":[
{
"requestId":"57",
"connectorId":"TomcatLinux:@8443:@localhost:@localhost:@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 Tomcat 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.