566 tutoriels disponibles
Chercher un tutoriel
Bienvenue
sur Shareannonce
 
Install Letsencrypt on Ubuntu
Ecrit par: Shareannonce
Date création:  26-09-2018
Nombre de vues:  2644
Catégorie:  informatique > gestion > ovh
Note: 
 
   Tutoriel N° 2c1

Install Letsencrypt on Ubuntu


I show u an example for the domain: abc-ico.com

You need to connect with ssh on your server and type those commands:

service apache2 stop
sudo apt-get install software-properties-common python-software-properties -y
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-apache
service apache2 stop

sudo certbot --apache -d abc-ico.com -d www.abc-ico.com


Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): your_mail@domain.ltd

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: A

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: N
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for abc-ico.com
http-01 challenge for www.abc-ico.com
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/abc-ico.com.vhost-le-ssl.conf
Deploying Certificate to VirtualHost /etc/apache2/sites-available/abc-ico.com.vhost-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/abc-ico.com.vhost-le-ssl.conf
Deploying Certificate to VirtualHost /etc/apache2/sites-available/abc-ico.com.vhost-le-ssl.conf

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Redirecting vhost in /etc/apache2/sites-enabled/100-abc-ico.com.vhost to ssl vhost in /etc/apache2/sites-available/abc-ico.com.vhost-le-ssl.conf

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://abc-ico.com and
https://www.abc-ico.com

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=abc-ico.com
https://www.ssllabs.com/ssltest/analyze.html?d=www.abc-ico.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/abc-ico.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/abc-ico.com/privkey.pem
Your cert will expire on 2018-12-25. 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"
- 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.
- If you like Certbot, please consider supporting our work by:

Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le


To list your certificates installed:

certbot certificates


Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
Certificate Name: abc-ico.com
Domains: abc-ico.com www.abc-ico.com
Expiry Date: 2018-12-25 20:46:56+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/abc-ico.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/abc-ico.com/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Delete a certificate

certbot delete


Saving debug log to /var/log/letsencrypt/letsencrypt.log

Which certificate(s) would you like to delete?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: abc-ico.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1

certbot revoke --cert-path /etc/letsencrypt/archive/abc-ico.com/cert1.pem



Renew a certificate

certbot renew


Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/abc-ico.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert not yet due for renewal

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

The following certs are not due for renewal yet:
/etc/letsencrypt/live/abc-ico.com/fullchain.pem expires on 2018-12-25 (skipped)
No renewals were attempted.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

On chrome:





 
 
   Autres tutoriels de la même catégorie >
 
ShareAnnonce version 2.0 Tous droits reserves. | Condition d'utilisation | Contact