![]() |
REST API
15
REST API for Luna Network HSMs
|
Adds a Certificate Authority(CA) certificate to the truststore.
The resource works in two different ways to add CA:
Note: • User can have only one CA at a time. • The syslog service needs to be (re)started before a secure connection can be established.
Users with the following role privileges can perform this command:
The PEM-encoded certificate of CA.
Use: Required
JSON Schema:
Object
type: string
minLength: 8
maxLength: 8192
pattern: ^-{5}+BEGIN CERTIFICATE-{5}(?:\\\\s|\\\\r|\\\\n)([A-Za-z0-9+=/\\\\r\\\\n]+)-{5}END CERTIFICATE-{5}([?:\\\\s|\\\\r|\\\\n]*)$
The name of the CA certificate to be added that is uploaded in the user's home directory.
Use: Required
JSON Schema:
Object type: string minLength: 1 maxLength: 64 pattern: [a-zA-Z0-9_. -]
CA Cert added successfully.
File is not a valid certificate.
An error indicating the provided certificate is currently expired.
we failed to parse the request. Filename not valid.
We failed to parse your request.
Non-existent file id specified.
An internal error has occured.
POST
https://1.2.3.4:8443/api/lunasa/syslog/remoteHosts/ca
{"certificate": "-----BEGIN CERTIFICATE-----\n...<certificate>...\n-----END CERTIFICATE-----"}
POST
https://1.2.3.4:8443/api/lunasa/syslog/remoteHosts/ca
{
"file": "CA.pem"
}
{}