
Save the keystore file and copy it to the Unifi controller. This should be the password you have set in the Unifi controller (aircontrolenterprise). Locate the PFX file and give the password you gave during creation of the pfx file.Īnd provide the new password. Now switch back to keystore explore and delete the unifi entry.Ĭlick: Tools –> Import Key Pair –> PKCS12. This could be different than the password used in the Unifi controller. The command to create the PKCS12 file is: openssl pkcs12 -export -in.
#Install keystore explorer install
If you don’t have already please install openssl. Now we need to create a PFX (PKCS12) file which holds the just created cer file and the key file. Note: You don’t have to provide the Root CA certificate as this should already be present on the endpoints connecting to your Unifi controller. Start with your own SSL certificate and follow the chain up to the Root CA. If you have more than 1 intermedate certificate just add them all. Paste the certificate followed by the intermediate certificate(s). Open a new text file in notepad, or your favorite text editor. Command : java utils.ImportPrivateKey -keystore mykeystore -storepass mypasswd -keyfile mykey -keyfilepass mykeypass -certfile newcerts.pem -keyfile testkey.pem -alias passalias. Create a new keystore named mykeystore and load the private key located in the testkey.pem file. If you can open the file with the given password we need to replace the current self-signed certificate with your own certificate.įirst create 1 cer file which holds the certificate and intermediate certificate(s). Command : cat testcert.pem CertGenCA.pem > newcerts.pem. try to open this file in keystore explorer with the correct password.Restart the controller and there will be a new keystore file generated.Note: You could also choose your own password here Edit /usr/lib/unifi/data/system.properties and add line: =aircontrolenterprise.Rename current keystore file so the controller can’t use it anymore (or just delete it).


If you can’t open it with password: aircontrolenterprise then you need to make sure the controller is using this password. Open the current keystore file in “ Keystore Explorer“. The keystore file is located in: /usr/lib/unifi/data (Linux) or %UserProfile%/Ubiquiti Unifi (Windows).
#Install keystore explorer how to
Ubiquiti has a little article on the site how to add yout own ssl certificate to your Unifi controller.

Published by Jeroen Tielen on JJune 4, 2018 Ubiquiti Unifi Controller SSL Certificate creation process
