Skip to content

Instantly share code, notes, and snippets.

@izhaomin
Created January 28, 2017 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save izhaomin/18ce2782d39b275a7439005b6dc79a1f to your computer and use it in GitHub Desktop.
Save izhaomin/18ce2782d39b275a7439005b6dc79a1f to your computer and use it in GitHub Desktop.
Bring your own keystore to UniFi Controller
#set export password as aircontrolenterprise
openssl pkcs12 -export -in unifi.crt -inkey unifi.pem -out unifi.p12 -name unifi -CAfile chain.crt -caname root -chain
keytool -importkeystore -deststorepass aircontrolenterprise -destkeypass aircontrolenterprise -destkeystore keystore -srckeystore unifi.p12 -srcstoretype PKCS12 -srcstorepass aircontrolenterprise -alias unifi
mv keystore /usr/lib/unifi/data/keystore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment