Install Self Signed Cert in UniFi Protect NVR

Created by Jonathan Joles, Modified on Wed, Jun 29, 2022 at 8:29 PM by Jonathan Joles

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


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article