Enable SSH, Putty in, create confgi file, run command, and Reboot to apply 10 year local cert.  Install in the client's trusted store and boom, all good.


Putty into the NVR


cd /data/unifi-core/config/


vi myconfig.conf


type the letter i  for insert

edit and paste this config into the file

[req]
default_bits = 2048
encrypt_key = no
default_md = sha256
distinguished_name = req_distinguished_name
prompt = no
x509_extensions = x509_extensions

[req_distinguished_name]
C = US
ST = MI
L = Linwood
O = Williams Cheese
OU = Tech
CN = unifi.williamscheese.local

[x509_extensions]
subjectAltName = @alternate_names

[alternate_names]
DNS.1 = unifi.williamscheese.local
DNS.2 = localhost
DNS.3 = 127.0.0.1
DNS.4 = unifi

Save by typing ESC then : then wq and enter


Run this command

openssl req -config myconfig.conf -newkey rsa -x509 -newkey rsa:2048 -keyout unifi-core.key -days 3650 -out unifi-core.crt