DisplayNet Logo
Skip to main content

dot1x_certificates

set dot1x_certificates installs an 802.1X certificate chain on one or more devices: the private key, the device certificate, and any intermediate certificates. A device uses the chain to authenticate with EAP-TLS on a switch port that enforces 802.1X.

Command TypeSDVoE
Minimum Version3.x.x

Usage​

set <target> dot1x_certificates <file_names> [password <password>]

Arguments​

ArgumentRequiredDescription
targetYesHostname or MAC address of a single device, or a device group (ALL, ALL_TX, ALL_RX).
file_namesYesComma-separated list of the certificate files, in this order: private key, device certificate, then intermediate certificates. See Certificate files.
passwordNoThe private key's password. Required only when the key file is encrypted. Spaces are not supported.

Certificate files​

RequirementValue
FormatPEM (Base64). Certificates are X.509.
Key typeECDSA, curve P-256 (secp256r1). RSA keys are rejected.
Chain sizeThe complete chain must not exceed 4 KB.
LocationThe files are read from DisplayNet Server, not sent in the command.

Behavior​

  • The complete chain must be installed in a single command.
  • Each command replaces any chain already on the device. This is how a certificate is renewed.
  • There is no command to remove a chain from a device.
  • Devices do not ship with a factory 802.1X certificate.
  • Installing a chain does not turn 802.1X on or off. Enforcement is configured on the network switch and the RADIUS server, and the RADIUS server must also use an ECDSA P-256 certificate.

To give each device its own certificate, send one command per device. To install a shared certificate on a group, use a group target.

Examples​

Install a certificate chain with an encrypted private key on one device
set 001ec0f03668 dot1x_certificates client.key,client.pem,intermediate.pem password s3cret
Install a shared certificate chain on all receivers
set ALL_RX dot1x_certificates shared.key,shared.pem,intermediate.pem

Return value​

set 001ec0f03668 dot1x_certificates client.key,client.pem,intermediate.pem password s3cret
{
"status": "PROCESSING",
"request_id": 57,
"result": null,
"error": null
}

The completed request, read with request, lists each device the chain was installed on:

{
"status": "SUCCESS",
"request_id": 57,
"result": {
"dot1x_certificates": [
{
"device_id": "001ec0f03668",
"device_name": "001ec0f03668"
}
],
"error": []
},
"error": null
}

Errors​

ErrorCause
ILLEGAL_ARGUMENTThe target is not a valid device ID or group name
IO_ERROROne of the listed files cannot be read
DOT1XThe password is wrong, a file is not in PEM format, the key is not ECDSA P-256, or the chain exceeds 4 KB

Checking status​

Two members of the device object report 802.1X information, both returned by get <target> settings:

MemberMeaning
capabilities.dot1xtrue if the device supports 802.1X
configuration.dot1x_certificatetrue if a certificate chain is installed

DisplayNet cannot see whether the switch has authorized a device's port. A device whose certificate is missing, expired, or rejected appears offline.

REST API​

Endpoint typeSDVoE API command, forwarded to the Control Server
Address/api/device/{target}
RoleGoverned by the device lock rather than by a DisplayNet role
POST /api/device/{target}
{
"op": "set:dot1x_certificates",
"password": "String",
"file_names": "String"
}

`password` is optional. `file_names` is a comma-separated list: key, device certificate, intermediates.

Values labeled with a type name such as String or Integer are placeholders, not literal text. Replace them with actual values; fields marked (optional) can be omitted.

{target} takes a DisplayNet device name as readily as a device ID, and a locked device refuses a mutating operation. See SDVoE API operations for what DisplayNet adds to these calls.

See also​

  • get: read dot1x_certificate and dot1x with the settings subset
  • set: the other device configuration subcommands