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

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 -V on 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.

  1. Download and install the CLI client from the public repo: https://gitlab.com/neat-no/dot1x-cli/
  2. 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).
  3. 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

  1. Wait for the device to fully reboot.
  2. Open a browser window and enter: https://<device-ip>
  3. Verify the SSL certificate is correct. See the example image below:
Figure 1. Verify the SSL certificate is correct example

Generating a self-signed certificate

  1. Create a folder where you can store all the certificates:$ mkdir neat-certificates
  2. Create a generate_cert.sh file in the neat-certificates folder. This file will store the necessary instructions to generate the certificates:
1 #!/bin/bash
2 set -x
3 ########## ROOT
4 # Create Root CA
6
7 ########## INTERMEDIATE
8 # Create Intermediate Key and CSR
9 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 CSR
21 
22 ########## LEAF
23 # Create Leaf key and CSR
24 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 CSR
38 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.ext
39
40 ########## BUNDLING
41 # Bundle
42 cat leaf.pkcs8.key leaf.pkcs8.pem intermediate.pkcs8.pem root.pkcs8.pem > fullchain.pem
  1. From the terminal, type: chmod +x generate_cert.sh
  2. To generate the certificate in this directory use: ./generate_cert.sh 
    This will create the certificate named fullchain.pem
  3. Continue with Step 1.3 above.