Proper Syntax for Local Cert Generation

L2 Linker

Proper Syntax for Local Cert Generation

Hi all,

 

Looking for some help on the proper XML structure for an API call to generate a local certificate. Every which way I try sending queries lands me an 'Illegal request [parameter]' response.

 

What I've tried lately was the following (with variables provided from a PowerShell function):

 

<request><certificate><generate><name>$CertificateName<signed-by>$SignedBy<algorithm><certificate-name>$Username<days-till-expiry>$ExpiryDays<digest>$Digest<RSA><rsa-nbits>$RSABits</rsa-nbits></RSA></digest><days-till-expiry><certificate-name></algorithm></name></signed-by></generate></certificate></request>

 

So ideally, I'd like to include the certificate name, CN, SignedBy, RSA w/20148 bits, sha256 digest, and 1 year expiry.

 

Any help would be a huge help!

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!