cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
988
Views
0
Helpful
2
Replies

UCM 15.0(1) API Support

jwilson
Level 2
Level 2

Hello.

Has anyone had any luck getting with  UCM 15.0(1) and getting this API to work for Identity Certificates to upload?  The tomcat one.

post....../platformcom/api/v1/certmgr/config/identity/certificates

I read this is required?

{ "service": "tomcat",
"certificates": [
"pem encoded leaf certificate",
"pem encoded intermediate certificate",
"pem encoded root certificate" ] }



But trying to upload it via a file and postman or python and get the 404 error "{"key":404,"messages":["Identity Certificate Not Found!"]"

So via AI tools trying to figure out from UCM 15.x what is actually required in the json payload
 
{ "certificate": {
"content": "Base64EncodedCertificateContent",
"name": "YourCertificateName",
"type": "Trust",
"distribution": "All" } }

Thank you

2 Replies 2

jwilson
Level 2
Level 2

I was able to get this to work with python.  I was not reading the Cisco API documenation correctly and had something mis spelled.  Our UCM nodes have the .pem all ready so all I did was include the leaf cert and as a .cer and that worked.   Lots of potential here and glad Cisco is finally alowing API access to Cert renewals. 

Ali Amir
Level 3
Level 3
Hi,
 
try to build it in this way:
 
{
  "service": "tomcat",
  "certificates": ["' + <tomcat_signed_certificate_as_pem> + '",
  "' + <Certificate_Chain_Trust> + '"],
  "description": "Uploaded by API"
}

tomcat signed certificate should be in this format:
-----BEGIN CERTIFICATE-----
....
-----END CERTIFICATE-----

The value of Certificate_Chain_Trust should be something like this:

-----BEGIN CERTIFICATE-----
<Intermediate2>
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
<Intermediate1>
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
<Root>
-----END CERTIFICATE-----