Skip to main content

cert

The cert command maintains the certificates used for HTTPS and Secure WebSocket, meaning the encryption of traffic to and from the DisplayNet Manager application and the DisplayNet API WebSocket.

Command TypeDisplayNet
Minimum Version2.x.x
Requires the Admin role

Usage

cert list
cert addcert <name> <cert> <key>
cert set <name>
cert retrieve <name>
cert remove <name>

Subcommands

SubcommandDescription
listLists the available SSL certificates
addcertAdds a new SSL certificate to the library
setMakes a certificate active by name, replacing the currently active certificate
retrieveRetrieves details about a certificate by name
removeRemoves a certificate from the library by name

Arguments

ArgumentRequiredDescription
nameAll except listThe common name of the certificate and key.
certaddcertA base64-encoded certificate file.
keyaddcertA base64-encoded certificate key.
Activation validates the pair

For set to succeed, both a key and certificate of the same name must exist. Activating a certificate validates the pair and attaches it to the HTTPS instance.

Examples

Add a certificate to the library (values truncated)
cert addcert dvigear-cert bGphc2w7ZGZraiBhc2w7ZGtYXNsO2Rma... gYXNsO2Rma2phc2w7a2Rmtqd28=...
Make it the active certificate
cert set dvigear-cert
Remove an old certificate
cert remove custom-cert

Return value

cert list
{
"status": "SUCCESS",
"request_id": null,
"result": {
"certificates": [
{
"name": "dvigear",
"IsActive": true,
"ValidTo": "7/15/2026, 2:54:56 PM",
"Subject": "E=support@dvigear.com, CN=dvigear.com, OU=Development, O=DVIGear, L=Marietta, S=Georgia, C=US"
},
{
"name": "dvigear2",
"IsActive": false,
"ValidTo": "7/15/2026, 2:54:56 PM",
"Subject": "E=support@dvigear.com, CN=10.1.1.5, OU=Development, O=DVIGear, L=Marietta, S=Georgia, C=US"
}
]
},
"error": null
}

REST API

Endpoint typeDisplayNet API command
AddressPOST /api/displaynet/<operation>, or name the operation in the body of a POST /api/displaynet. See Sending commands.
RoleAdmin
SubcommandOperationParameters
addcertcert_addcertname cert64 key64
listcert_list
removecert_removename
retrievecert_retrievename
setcert_setname

See also