Get a Certificate by Certificate ID
On an end-customer Service Now, use this API to retrieve a specific SSL certificate received from a Service Now partner.
URI
https://[host] /api/juniper/servicenow/certificate-management/certificates/{id} (HTTP method = GET)
URI Parameters
Parameter | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | ID of the certificate |
Consumes
None
Produces
application/vnd.juniper.servicenow.certificate-management.certificate+json;version=1
application/vnd.juniper.servicenow.certificate-management.certificate+xml;version=1
Response Elements
Element | Type | Description |
---|---|---|
id | Integer | ID of the certificate |
name | String | Name of the certificate |
aliasName | String | Alias of the certificate Issuer |
issuerName | String | Name of the Service Now partner who issued the certificate |
serialNumber | Integer | Serial number of the certificate |
signatureAlgorithmName | String | Algorithm used for signing the SSL certificate |
notBefore | String | Date and time before which the certificate is not valid |
notAfter | String | Date and time after which the certificate is not valid |
Sample Output
Sample XML Output
<certificate> <id>3801090</id> <name>EMAILADDRESS=test@ec.com, CN=Ec 01, OU=Service Automation EC, O=EC 01, L=Bangalore, ST=Karnataka, C=IN</name> <aliasName>sn-partner</aliasName> <issuerName>EMAILADDRESS=user@example.com, CN=Service Automation CA, OU=Service Automation CA, O=Juniper Networks, L=Bangalore, ST=Karnataka, C=IN</issuerName> <serialNumber>4</serialNumber> <signatureAlgorithmName>SHA1withRSA</signatureAlgorithmName> <notBefore>1394688197000</notBefore> <notAfter>1426224197000</notAfter> </certificate>
Sample JSON Output
{ "certificate" : { "id" : 3801091, "name" : "EMAILADDRESS=test@ec.com, CN=Ec 01, OU=Service Automation EC, O=EC 01, L=Bangalore, ST=Karnataka, C=IN", "aliasName" : "sn-partner", "issuerName" : "EMAILADDRESS=user@example.com, CN=Service Automation CA, OU=Service Automation CA, O=Juniper Networks, L=Bangalore, ST=Karnataka, C=IN", "serialNumber" : 4, "signatureAlgorithmName" : "SHA1withRSA", "notBefore" : 1394688197000, "notAfter" : 1426224197000 } }