Add Certificate
Add the certificate to the API
Syntax: see Call Structure
Type = 'POST'
'http://localhost:Port Number/api/v1/certificate' \ -d '{ "private-key": "Key-filename", "certificate": "certificate-filename", "password": "password" }' |
Parameter | Description |
---|---|
key-filename | The filename including the path of the private key |
certificate-filename | The filename including the path of the certificate |
password | optional password if required by private key |
Returns
true
Notes
-
The files will need to be stored in a location that is accessible by the account under which the API runs
Example
curl -X 'POST' \ 'http://localhost:Port Number/api/v1/certificate' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "private-key": "C:\\Cambrionix\\certificate\\key.pem", "certificate": "C:\\Cambrionix\\certificate\\cert.pem" }' |
Returns
true
Errors
If there is an error in the API method then a JSON-RPC Error Object will be returned