Skip to content

Latest commit

 

History

History
75 lines (53 loc) · 4.14 KB

install_rpm.md

File metadata and controls

75 lines (53 loc) · 4.14 KB

RPM installation on AlmaLinux/Redhat EL/CentOS Stream 9

  1. Download the latest RPM package.

  2. Install "Extra Packages for Enterprise Linux (EPEL)"

sudo yum install -y epel-release
sudo yum update -y
  1. Install the RPM packages
sudo yum -y localinstall /tmp/acme2certifier/acme2certifier-0.23.1-1.0.noarch.rpm

In case you install on Redhat 8.x you need to upgrade following packages

Backports of these packages being part of RHEL9 can be found in the the a2c rpm repository

Depending on your ca_handler you may need additional modules:

  1. Copy NGINX configuration file
cp /opt/acme2certifier/examples/nginx/nginx_acme_srv.conf /etc/nginx/conf.d
  1. Copy NGINX ssl configuration file (optional)
cp /opt/acme2certifier/examples/nginx/nginx_acme_srv_ssl.conf /etc/nginx/conf.d
  1. Create a configuration file acme_srv.cfg in /opt/acme2certifier/acme_srv/ or use the example stored in the examples directory
  2. Modify the configuration file according to you needs
  3. Configure the CA handler according to your needs. Example for Insta Certifier
  4. Enable and start the acme2certifier service
sudo systemctl enable acme2certifier.service
sudo systemctl start acme2certifier.service
  1. Enable and start the nginx service
sudo systemctl enable nginx.service
sudo systemctl start nginx.service
  1. Test the server by accessing the directory resource
$ curl http://<your server name>/directory
{"newAccount": "http://127.0.0.1:8000/acme_srv/newaccount", "fa8b347d3849421ebc4b234205418805": "https://community.letsencrypt.org/t/adding-random-entries-to-the-directory/33417", "keyChange": "http://127.0.0.1:8000/acme_srv/key-change", "newNonce": "http://127.0.0.1:8000/acme_srv/newnonce", "meta": {"home": "https://github.com/grindsa/acme2certifier", "author": "grindsa <grindelsack@gmail.com>"}, "newOrder": "http://127.0.0.1:8000/acme_srv/neworders", "revokeCert": "http://127.0.0.1:8000/acme_srv/revokecert"}
  1. Try to enroll a certificate by using your favourite acme-client. If something does not work enable debugging in /opt/acme2certifier/acme_srv/acme_srv.cfg and check /var/log/messages for errors.