-
Notifications
You must be signed in to change notification settings - Fork 43
Upgrading acme2certifier
In acme2certifier v0.17, the acme
module (which implements ACME server functionality) has been renamed to acme_srv
.
This renaming was done to avoid naming conflicts with acme-python and affects acme2certifier deployments running as Django projects, as the Django application must be renamed, and the database schema must be updated.
If you are using the prebuilt Django containers running on Apache2 or NGINX, the necessary modifications will be applied automatically when deploying the updated containers:
acme2certifier Django Containers
If you installed acme2certifier manually as a Django project, follow these steps:
cd /var/www/acme2certifier
wget <new_version_url> -O acme2certifier-0.17.tar.gz
tar -xzf acme2certifier-0.17.tar.gz
pip install django-rename-app
Edit your Django settings file (usually found at /var/www/acme2certifier/acme2certifier/settings.py
) and rename the existing acme
app to acme_srv
:
INSTALLED_APPS = [
...
'acme_srv',
...
]
python manage.py rename_app acme acme_srv
cp acme/acme_srv.cfg acme_srv/acme_srv.cfg
cp examples/db_handler/django_handler.py acme_srv/db_handler.py
# If there is no `handler_file` parameter in `acme_srv.cfg`, copy your CA handler
cp examples/ca_handler/* acme_srv/
systemctl restart acme2certifier
curl http[s]://<acme-srv>/directory
Once the upgrade is verified, remove the old acme
directory:
rm -rf acme
Your acme2certifier instance is now successfully upgraded to v0.17! 🚀