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.
- 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 usingacme.sh
. - Set the
ACME_SH
variable to the location of theacme.sh
installation.
- Set the
- Execute
update-unifi-certificate.sh
to update Unifi Controller.
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
.
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.