REST API
15
REST API for Luna Network HSMs
|
Install the HSM certificate.
The resource works in two different ways to install certificate:
Note: 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:
application/vnd.safenetinc.lunasa+octet-stream;version=
application/vnd.safenetinc.lunasa+json;version=
Specifies the filename of the certificate found in the user's home directory.
Use: Required
JSON Schema:
Object type: string minLength: 1 maxLength: 64 pattern: [a-zA-Z0-9_. -]
Success
We failed to parse your request.
If certificate provided is not valid
An error indicating the provided certificate is currently expired.
If user has not used octet-stream request for attaching file.
If certificate provided does not exist
Operation has not completed successfully.
The content type of the request needs to be application/vnd.safenetinc.luna+octet-stream to notify the server that it will be receiving a file. Attach the file with the request.
Header format:
headers = {'Content-Type': "application/vnd.safenetinc.lunasa+octet-stream;version="}
PUT https://1.2.3.4:8443/api/lunasa/syslog/remoteHosts/certificate { }
PUT https://1.2.3.4:8443/api/lunasa/syslog/remoteHosts/certificate { "file":"signed_server.pem" }
{}