Certbot

https://certbot.eff.org/lets-encrypt/debianstretch-apache

# apt-get install python-certbot-apache -t stretch-backports
# certbot --authenticator webroot --installer apache

Saving debug log to /var/log/letsencrypt/letsencrypt.log
No names were found in your configuration files.
Please enter in your domain  name(s) (comma and/or space separated)
(Enter 'c’ to cancel): revitesite.pl

Enter email address (used for urgent renewal and security notices)
(Enter 'c’ to cancel): admin@revitesite.pl

——————————————————————————-
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v01.api.letsencrypt.org/directory
——————————————————————————-
(A)gree/(C)ancel: A
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for revitesite.pl

Select the webroot for revitebite.pl:
——————————————————————————-
1: Enter a new webroot
——————————————————————————-
Press 1 [enter] to confirm the selection (press 'c’ to cancel): 1
Input the webroot for revitebite.pl: (Enter 'c’ to cancel): /var/www/moodle
Waiting for verification…
Cleaning up challenges
Generating key (2048 bits): /etc/letsencrypt/keys/0000_key-certbot.pem
Creating CSR: /etc/letsencrypt/csr/0000_csr-certbot.pem
No vhost exists with servername or alias of: revitesite.pl (or it’s in a file with multiple vhosts, which Certbot can’t parse yet). No vhost was selected. Please specify ServerName or ServerAlias in the Apache config, or split vhosts into separate files.
No vhost selected

IMPORTANT NOTES:
– Unable to install the certificate
– Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/revitebite.pl/fullchain.pem. Your cert will
expire on 2018-12-18. To obtain a new or tweaked version of this
certificate in the future, simply run certbot again with the
„certonly” option. To non-interactively renew *all* of your
certificates, run „certbot renew”
– If you lose your account credentials, you can recover through
e-mails sent to admin@revitebite.pl.
– Your account credentials have been saved in your Certbot
configuration directory at /etc/letsencrypt. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.

Ręczna konfiguracja certyfikatów:

# certbot certonly --authenticator standalone
# certbot certonly --authenticator standalone --pre-hook "apachectl -k stop" --post-hook "apachectl -k start"

Dodaj komentarz