Describe when someone would need this information. For example "when connecting to wi-fi for the first time".
Add the steps involved:
Change directory into the UniFi home directory
cd /opt/UniFi |
Make a backup of the keystore
cp data/keystore data/keystore.bak |
Generate the Certificate Signing Request (CSR)
openssl req -new -newkey rsa:2048 -nodes -out unifi.csr -keyout unifi.key |
You can also use the DigiCert Easy CSR tool. |
Get your certificate signed by your Certificate Authority of choice. We recommend DigiCert.
Copy and paste your signed certificate to the server in the current UniFi home directory.
nano unifi.crt |
Create a PKCS#12 archive
openssl pkcs12 -export -in unifi.crt -inkey unifi.key -out unifi.p12 -name unifi -password pass:aircontrolenterprise |
If your CA requires an intermediate certificate, append the following to the previous command before submitting it.
-CAfile "intermediate_cert_from_CA.crt" -caname root |
Import the PKCS#12 archive into the keystore
keytool -importkeystore -deststorepass aircontrolenterprise -destkeypass aircontrolenterprise -destkeystore data/keystore -srckeystore unifi.p12 -srcstoretype PKCS12 -srcstorepass aircontrolenterprise -alias unifi |
You will be asked the following
Existing entry alias unifi exists, overwrite? [no]: |
Restart the UniFi service
systemctl restart unifi |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|