deb/apache-letsencrypt.bash
author Oleksandr Gavenko <gavenkoa@gmail.com>
Thu, 02 May 2024 15:46:52 +0300
changeset 33 7b602d7f98cd
parent 31 461eed8e7463
child 34 68975e7d5237
permissions -rw-r--r--
Added commend about alias.

#!/bin/bash

mkdir /srv/www/letsencrypt

# service apache2 stop
# --standalone

# Command requires Apache or Lighttpd running and aliasing (no need to stop Apache!):
#   Alias "/.well-known/acme-challenge/" "/srv/www/letsencrypt/.well-known/acme-challenge/"
certbot certonly --webroot \
 --agree-tos --non-interactive \
 -m gavenkoa@gmail.com \
 -w /srv/www/letsencrypt \
 --cert-name defun.work \
 -d defun.work \
 -d 2048.defun.work \
 -d blog.defun.work \
 -d cooking.defun.work \
 -d gadict.defun.work \
 -d hg.defun.work \
 -d resume.defun.work \
 -d stat.defun.work \
 -d test.defun.work \
 -d tips.defun.work

# service apache2 start

# https://wiki.debian.org/LetsEncrypt
# python3-certbot-apache - Apache plugin for Certbot

# systemctl reload apache2
# sudo certbot --apache --agree-tos --redirect -m youremail@email.com -d domainname.com -d www.domainname.com