moepman/acertmgr

README lacks installation section

Opened this issue · 1 comments

The README currently is lacking an installation section.
It should contain at least setup via pip and manual installation with setup.py.

I am using this script on Circle Linux, thank you for writing it.

Setup as root with setup.py

# Switch to root user
sudo su - root

# First install Python
dnf install python3 python3-cryptography python3-pyyaml python3-dns python3-idna

# Download and extract acertmgr
curl -L https://github.com/moepman/acertmgr/releases/download/1.0.4/acertmgr-1.0.4.tar.gz -O
tar -xf acertmgr-1.0.4.tar.gz
cd acertmgr-1.0.4
python3 setup.py install --record install.log
# The install.log file will contain information on which files are installed and where
# this will prove useful if you'll ever want to completely uninstall the script

# Configure acertmgr
vim /etc/acertmgr/acertmgr.conf # global config
vim /etc/acertmgr/example.com # domain config

# Run acertmgr
acertmgr

Note:

If you want to run acertmgr in webdir mode make sure that httpd does not redirect requests for http://.well-known/acme-challenge/ to https://.well-known/acme-challenge/.

I use Apache httpd so I use the following RedirectMatch directive in the virtualhost coniguration file to redirect every URI to https except those starting with /.well-known/acme-challenge/

RedirectMatch 301 ^(?!/\.well-known/acme-challenge/).* https://example.com$0