Come ottenere un certificato SSL Let’s Encrypt usando certbot

Cerca

In questo scenario abbiamo la necessità di ottenere un certificato SSL per il nostro sito web hostato su una macchina Ubuntu. Grazie al servizio Let’s Encrypt e al tool certbot possiamo ottenerlo in pochi semplici passaggi.

Soluzione

Eseguiamo il comando

				
					certbot certonly
				
			

Otterremo la seguente risposta:

				
					How would you like to authenticate with the ACME CA?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Spin up a temporary webserver (standalone)
2: Place files in webroot directory (webroot)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel):
				
			

Digitiamo il valore appropriato [1-2]. In generale è l’opzione 2.

				
					2
				
			

Otterremo la seguente risposta

				
					Plugins selected: Authenticator webroot, Installer None Please enter in your domain name(s) (comma and/or space separated) (Enter 'c' to cancel):
				
			

Inseriamo il nostro nome di dominio

				
					alessandromasciadri.com
				
			

Otterremo la seguente risposta

				
					Obtaining a new certificate
Performing the following challenges:
http-01 challenge for alessandromasciadri.com
Input the webroot for alessandromasciadri.com: (Enter 'c' to cancel):
				
			

Inseriamo il percorso del nostro sito web

				
					/var/www/html/
				
			

Attendiamo che il certificato venga correttamente generato. Otterremo la seguente risposta

				
					Waiting for verification...
Cleaning up challenges
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/alessandromasciadri.com/fullchain.pem
Your key file has been saved at: /etc/letsencrypt/live/alessandromasciadri.com/privkey.pem
Your cert will expire on 2022-04-24. To obtain a new or tweaked version of this certificate in the future, simply run certbot again. To non-interactively renew *all* of your certificates, run "certbot renew"
- 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
				
			

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.

Most Recent
Partners