How To Setup A Certbot Container For The SSL Keys
How To Setup A Certbot Container For The SSL Keys
prerequisites
DNS check
setup an A record on DNS for www
#ping <domain> #syntax
#51.89.248.5
#51.89.207.50
-p <ip>:8081:8081 \
-v /home/debian/docker_files/docker_volumes/nextcloud_volume:/nextcloud_volume
\
<image_name>:<imag_tag>
sample
docker run -dti --name certbot \
-p 80:80 \
-v "/opt/letsencrypt:/etc/letsencrypt" \
debian:buster
apt update
add-apt-repository universe
add-apt-repository ppa:certbot/certbot
apt-get update
How would you like to authenticate with the ACME CA? = 2: Place files in webroot
directory (webroot)
Enter email = [email protected]
Please read the Terms of Service … = A
Would you be willing to share your email … = N
Input the webroot for netforfun.ovh: = /var/www/html
certbot -d www.netforfun.ovh certonly
* How would you like to authenticate with the ACME CA? = 3: Place files in
webroot directory (webroot)
check certificates
ls -lash /etc/letsencrypt/keys/ #if I am inside the container