Resources | node | system | security | pki | certificate | generateCSR

generateCSR

generate CSR(Certificate Signing Request).

Input Params

NameMandatoryDefaultDescription
keySizeOkeySize2K Size of RSA key or ECDSA-name to generate private key via openssl command. Default size is 2K (RSA).
csrSubM CSR subject name.
subjectAlternativeDnsNameO CSR subject alternative DNS name.

Output Params

NameDescription
result request status, 0 (success), failed otherwise
status Base64(PEM) encoded PKCS#10 CSR string if request is successful, i.e. result value is 0. Error description if request is not successful, i.e. result value is not 0.
RESTCONF API: POST Example

curl -kisu 'admin:secret' -X POST -H 'Content-Type: application/yang-data+xml' https://{SBX-SERVER}/restconf/operations/sonusNodeList:node={nodeName}/sonusNodeListSystem:system/sonusNodeListGen2Security:security/pki/certificate={name}/generateCSR --data '
<generateCSR>
     <csrSub>{csrSub}</csrSub>
</generateCSR>
'

  • No labels