-
Notifications
You must be signed in to change notification settings - Fork 39
upgrading acme2certifier
grindsa edited this page Nov 28, 2024
·
2 revisions
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.
- download and unpack the 0.17 archive in
/var/www/acme2certifier
- install the
django-rename-app
by using pip
root@rlh:~# pip install django-rename-app
- add the app to your Django settings.py (should be stored in
/var/www/acme2certifier/acme2certifier
) and rename the existingacme
app toacme_srv
INSTALLED_APPS = [
...
'acme_srv'
...
]
- rename the app
root@rlh:~# python manage.py rename_app acme acme_srv
- copy
acme_srv.cfg
fromacme
toacme_srv
directory - copy
examples/db_handler/django_handler.py
toacme_srv/db_hander.py
- copy your ca_handler from
examples/ca_handler
into theacme_srv
directory if there is nohandler_file
parameter in youracme_srv.cfg
- start acme2certifier and try to query the
directory
ressource
root@rlh:~# curl http[s]://<acme-srv>/directory
- delete the
acme
directory