Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README lacks installation section #46

Open
moepman opened this issue Oct 7, 2019 · 1 comment
Open

README lacks installation section #46

moepman opened this issue Oct 7, 2019 · 1 comment

Comments

@moepman
Copy link
Owner

moepman commented Oct 7, 2019

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

@CasualRascal
Copy link

CasualRascal commented Oct 21, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants