Letsencrypt: Difference between revisions

From Jan's Wiki
Jump to navigation Jump to search
(Created page with "To renew certificates use ./letsencrypt-auto certonly --webroot --webroot-path /usr/local/www/mail3 --debug -d mail3.riechers.info -d mail3.conti.work -d mail3.r-jan.de -d...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:


Apache is setup for those 3 domains with aliases.
Apache is setup for those 3 domains with aliases.
Or for non http sites use:
  docker run -it --rm -v /var/lib/lxc/mini-server/rootfs/etc/letsencrypt:/etc/letsencrypt -v /var/lib/lxc/mini-server/rootfs/var/lib/letsencrypt:/var/lib/letsencrypt registry.gitlab.jans.space/der-jan/certbot certonly --dns-rfc2136  --dns-rfc2136-credentials /etc/letsencrypt/dns-rfc2136.ini -d horst.jans.space
Renew certs:
  certbot renew --dns-rfc2136  --dns-rfc2136-credentials /etc/letsencrypt/dns-rfc2136.ini
To refresh the image
  cd ~/Documents/src/certbot
  git pull
  docker pull certbot/certbot
  docker build -t registry.gitlab.jans.space/der-jan/certbot .
  docker push registry.gitlab.jans.space/der-jan/certbot

Latest revision as of 11:45, 24 October 2018

To renew certificates use

   ./letsencrypt-auto certonly --webroot --webroot-path /usr/local/www/mail3 --debug -d mail3.riechers.info -d mail3.conti.work -d mail3.r-jan.de -d mail3.jan-riechers.de

Apache is setup for those 3 domains with aliases.

Or for non http sites use:

 docker run -it --rm -v /var/lib/lxc/mini-server/rootfs/etc/letsencrypt:/etc/letsencrypt -v /var/lib/lxc/mini-server/rootfs/var/lib/letsencrypt:/var/lib/letsencrypt registry.gitlab.jans.space/der-jan/certbot certonly --dns-rfc2136  --dns-rfc2136-credentials /etc/letsencrypt/dns-rfc2136.ini -d horst.jans.space

Renew certs:

 certbot renew --dns-rfc2136  --dns-rfc2136-credentials /etc/letsencrypt/dns-rfc2136.ini

To refresh the image

 cd ~/Documents/src/certbot
 git pull
 docker pull certbot/certbot
 docker build -t registry.gitlab.jans.space/der-jan/certbot .
 docker push registry.gitlab.jans.space/der-jan/certbot