What are the API methods for setting custom SSL certificates on the Element mNode?
Applies to
- Element Software versions 11.3 and above
- Element Management Node (mNode) versions 11.3 and above
Answer
As of versions 11.3 and above, the following API methods can be used to view, change, or reset the SSL certificate in place on the mNode:
- GetNodeSSLCertificate -- retrieve the currently-active SSL certificate on the mNode
- SetNodeSSLCertificate -- set a custom SSL certificate and private key for the mNode
- RemoveNodeSSLCertificate -- remove the custom SSL certificate and private key from the mNode; revert the mNode to the default certificate and private key
The text of the certificate itself will be submitted in the payload of the https POST request, in the 'privateKey' and 'certificate' parameters. There are various ways to do this, such as:
- through an API tool like Postman. See How to install and configure Postman to run Element software APIs
- Element Powershell Tools
- through linux command-line tools such as:
- scripts which use
wget
orcurl
Element Python SDK
- scripts which use
Warnings:
|
Additional Information
The above API's are for the mNode specifically; to manage the SSL certificate on the Element cluster itself (and all storage nodes therein), the equivalent API's are: