Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Add a Certificate to Service Now

    On an end-customer Service Now, use this API to add an SSL certificate. The certificate includes alias of the Service Now partner issuing the certificate.

    URI

    https://[host]/api/juniper/servicenow/certificate-management/upload (HTTP method = POST)

    Consumes

    Multipart/form-data.

    The alias request parameter must be passed in the request. Currently, the supported value for this parameter is sn-partner.

    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

    Date

    Date and time before which the certificate is not valid.

    notAfter

    Date

    Date and time after which the certificate is not valid.

    Sample Input

    Sample Input File

     curl -k -v -i -X POST -u super:123juniper -H 'Content-Type:multipart/form-data' https://10.219.51.8/api/juniper/servicenow/certificate-management/upload -F "partner_cert.crt=@partner_cert.crt" -F "alias=sn-partner"
    
    

    Sample Output

    Sample XML Output

    <certificate>
    	<id>299045</id>
    	<name>EMAILADDRESS=pbiswas@juniper.net, CN=service-now, OU=ASAP, O=Juniper Networks India, L=Bangalore, ST=Karnataka, C=IN</name>
    	<aliasName>sn-partner</aliasName>
    	<issuerName>EMAILADDRESS=pbiswas@juniper.net, CN=junos-space-server, OU=CSS, O=Juniper Networks, L=Bangalore, ST=Karnataka, C=IN</issuerName>
    	<serialNumber>1</serialNumber>
    	<signatureAlgorithmName>SHA1withRSA</signatureAlgorithmName>
    	<notBefore>1470121923000</notBefore>
    	<notAfter>1533193923000</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
    	}
    }
    

    Modified: 2016-08-11