Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.51 KB

README.md

File metadata and controls

31 lines (21 loc) · 1.51 KB

unifi-acme.sh

The update-unifi-certificate.sh script enables easy updating of the certificate used by UniFi Controller. The script has been tested on Debian 8 "Jessie" with Unifi Controller installed via the official Debian repository.

How to use

  • Install acme.sh and follow the instructions to create a certificate for the domain you want to use to access UniFi Controller.
  • Update the update-unifi-certificate.sh script:
    • Set the DOMAIN variable to the domain for which you previously generated a certificate using acme.sh.
    • Set the ACME_SH variable to the location of the acme.sh installation.
  • Execute update-unifi-certificate.sh to update Unifi Controller.

TODO

The update-unifi-certificate.sh script should be run automatically whenever a new certificate is generated via acme.sh. For now, you must manually execute update-unifi-certificate.sh.

License

Copyright 2016 Martin Kamp Jensen

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.