Skip to content

upgrading acme2certifier

grindsa edited this page Jul 8, 2021 · 1 revision

Upgrading acme2certifier

Upgrade to version 0.17

The acme module whch is implementing acme-server functionality has been renamed in acme2certifier v0.17 to acme_srv. Renaming has been done to avoid naming conflicts with acme-python and impacts acme2certifier deployments running as django projects as the django application need to be renamed and the database-scheme needs to be updated.

If you are running the ready-made django containers using either apache2 or nginx the needed modifications will be done automatically when deploying the new containers.

If you installed acme2certifer manually as django project the following steps need to be done.

  1. download and unpack the 0.17 archive in /var/www/acme2certifier
  2. install the django-rename-app by using pip
root@rlh:~# pip install django-rename-app
  1. add the app to your Django settings.py (should be stored in /var/www/acme2certifier/acme2certifier) and rename the existing acme app to acme_srv
INSTALLED_APPS = [
    ...
    'django_rename_app',
    'acme_srv'
    ...
]
  1. rename the app
root@rlh:~# python manage.py rename_app acme acme_srv
  1. copy acme_srv.cfg from acme to acme_srv directory
  2. copy examples/db_handler/django_handler.py to acme_srv/db_hander.py
  3. copy your ca_handler from examples/ca_handler into the acme_srv directory if there is no handler_file parameter in your acme_srv.cfg
  4. start acme2certifier and try to query the directory ressource
root@rlh:~# curl http[s]://<acme-srv>/directory
  1. delete the acme directory
Clone this wiki locally