How to Add Custom Web Server Certificates for Neat Devices
Last updated November 26, 2026
Introduction
This article explains how to replace the default self-signed certificates used by the embedded web server with your own CA-signed certificates.
Important note: The custom web server certificate installation process is currently supported while the Neat devices are in OOB mode only.
Contents
- Introduction
- Prerequisites
- Step 1. Uploading the web server certificate
- Step 2. Verify the web server certificate
- Generating a self-signed certificate
Prerequisites
- Neat devices must be running Neat OS 25.2 (or higher).
- The device must be set up during out-of-box (OOB) mode. If the device has already been configured and is no longer in OOB mode, you will need to perform a factory reset to return it to OOB mode. See How to Factory Reset a Neat Device.
- Neat devices must be on a local area network (LAN) (wired or wireless) and reachable by IP address for configuration.
- Python 3 environment for customer-side script.
- Familiarity with Python and PIP is preferable
- Install PIP – If you have Python version 3.4 or later, PIP is included by default
- For the Latest version of neat-dot1x-cli please see the Release or run
neat-dot1x-cli -Von your Command terminal.
Step 1. Uploading the web server certificate
Important: Before proceeding, you must perform a factory reset on all paired devices. This is a required step to allow a new TLS handshake to be established with the uploaded certificate.
- Download and install the CLI client from the public repo: https://gitlab.com/neat-no/dot1x-cli/
- Follow the Installation on pc: https://gitlab.com/neat-no/dot1x-cli#installation-on-pc
- Prepare your certificate.
Note: If you want to test with a self-signed certificate, you can follow the step below (Generating a self-signed certificate). - Upload the web server certificate to a Neat device. On a new terminal window, enter:
$ neat-dot1x-cli {IP address or FQDN of device} {oob} {device-serial} set_webserver_cert fullchain.pem --reboot
Note: The --reboot argument in the above command causes the device to be rebooted after the command is successfully executed.
Note: If your CA contains a password you can add additional --pem-password argument in the above command.
Step 2. Verify the web server certificate
- Wait for the device to fully reboot.
- Open a browser window and enter:
https://<device-ip> - Verify the SSL certificate is correct. See the example image below:

Generating a self-signed certificate
- Create a folder where you can store all the certificates:
$ mkdir neat-certificates - Create a
generate_cert.shfile in theneat-certificatesfolder. This file will store the necessary instructions to generate the certificates:
1 #!/bin/bash 2 set -x 3 ########## ROOT 4 # Create Root CA6 7 ########## INTERMEDIATE 8 # Create Intermediate Key and CSR9 openssl req -new -newkey rsa:2048 -sha256 -nodes -out intermediate.pkcs8.csr -keyout intermediate.pkcs8.key -subj '/CN=Intermediate CA/DC=corp/DC=neat/DC=rd/DC=no'10 11 # Create a intermediate extension 12 cat <<EOF > intermediate.ext 13 authorityKeyIdentifier=keyid,issuer 14 subjectKeyIdentifier=hash 15 basicConstraints=CA:TRUE 16 keyUsage = digitalSignature, keyCertSign 17 EOF 18 19 # Sign Intermediate CSR21 22 ########## LEAF 23 # Create Leaf key and CSR24 openssl req -new -nodes -out leaf.pkcs8.csr -newkey rsa:2048 -keyout leaf.pkcs8.key -subj '/CN=NA12345678/OU=RD/O=Neat RD/L=Norway/ST=Oslo/C=NO'25 26 # Create a leaf extension: 27 cat <<EOF > leaf.ext 28 authorityKeyIdentifier=keyid 29 subjectKeyIdentifier=hash 30 keyUsage = digitalSignature,nonRepudiation, keyEncipherment 31 subjectAltName = @alt_names 32 [alt_names] 33 otherName=msUPN;UTF8:neat.test@local 34 email=neat.test@local 35 EOF 36 37 # Sign Leaf CSR38 openssl x509 -req -in leaf.pkcs8.csr -CA intermediate.pkcs8.pem -CAkey intermediate.pkcs8.key -CAcreateserial -out leaf.pkcs8.pem -days 365 -sha256 -extfile leaf.ext39 40 ########## BUNDLING 41 # Bundle42 cat leaf.pkcs8.key leaf.pkcs8.pem intermediate.pkcs8.pem root.pkcs8.pem > fullchain.pem
- From the terminal, type:
chmod +x generate_cert.sh - To generate the certificate in this directory use:
./generate_cert.sh
This will create the certificate namedfullchain.pem - Continue with Step 1.3 above.