Resources | system | security | pki | certificate

certificate

The Public Key Infrastructure (PKI) provides a common set of infrastructure features supporting public key and certificate-based authentication based on RSA public/private key pairs and X.509 digital certificates.

Configuration

ParameterPresenceTypeDefaultDescription
nameMstring The name of the certificate entry.
stateOenumerationdisabled The administration state of this certificate.
fileNameOstring The certificate content file name
passPhraseOstring Pass-phrase to decrypt RSA private key in PKCS12 file.
typeMenumeration The type of the certificate - remote : certificate is imported from remote; local : certificate is used locally; local-internal : local certificate with private key generated on the SBX.

Operations

Operation NameDescription
generateCSR generate CSR(Certificate Signing Request).
importCert Import PEM format certificate.
retrieveCertContent Retrieve and display installed X.509 certificate content
REST API: GET Example

curl -kisu 'admin:secret' -X GET https://{SBX-SERVER}/api/config/system/security/pki/certificate/{name}

REST API: POST Example

curl -kisu 'admin:secret' -X POST -H 'Content-Type: application/vnd.yang.data+xml' https://{SBX-SERVER}/api/config/system/security/pki --data '
<certificate>
     <name>{name}</name>
     <type>{type}</type>
</certificate>
'

REST API: DELETE Example

curl -kisu 'admin:secret' -X DELETE https://{SBX-SERVER}/api/config/system/security/pki/certificate/{name}

  • No labels