Instalacja Certyfikatu dla domeny https - Wersja do druku +- Indeks forum Nasze Pasieki (https://naszepasieki.org/forum) +-- Dział: Forum Administracyjne (https://naszepasieki.org/forum/forumdisplay.php?fid=3) +--- Dział: Admin ukryte (https://naszepasieki.org/forum/forumdisplay.php?fid=4) +---- Dział: Systemy Operacyjne (https://naszepasieki.org/forum/forumdisplay.php?fid=67) +----- Dział: Linux (https://naszepasieki.org/forum/forumdisplay.php?fid=71) +------ Dział: SSL (https://naszepasieki.org/forum/forumdisplay.php?fid=84) +------ Wątek: Instalacja Certyfikatu dla domeny https (/showthread.php?tid=229) |
Instalacja Certyfikatu dla domeny https - matt - 10-29-2022 Ponizszy atrykól z linka : https://www.cloudbooklet.com/how-to-install-lets-encrypt-ssl-with-apache-on-debian-11/ podpunkt 6 Step 1: Install Let’s Encrypt SSL HTTPS is a protocol for secure communication between a server (instance) and a client (web browser). Due to the introduction of Let’s Encrypt, which provides free SSL certificates, HTTPS are adopted by everyone and also provides trust to your audiences. Here we will install Certbot to install Let’sEncrypt SSL using Snap. sudo apt update sudo apt install snapd -y sudo snap install core sudo snap refresh core Install Certbot tool. sudo snap install --classic certbot Configure Certbot to be executable as as a command. sudo ln -s /snap/bin/certbot /usr/bin/certbot Now we have installed Certbot to install Let’s Encrypt for Debian 11. Execute the following command to install your certificates. sudo certbot --apache --agree-tos --redirect -m youremail@email.com -d domainname.com -d www.domainname.com Select the appropriate option and hit Enter This command will install Free SSL, configure redirection to HTTPS and restarts the Apache server. Step 2: Renewing SSL Certificate Certificates provided by Let’s Encrypt are valid for 90 days only, so you need to renew them often. So, let’s test the renewal feature using the following command. sudo certbot renew --dry-run This command will test the certificate expiry and configures the auto-renewable feature. Step: 3: Test the Setup Once you have done the able steps you can create a new test HTML file in your web directory. sudo nano /var/www/html/domainname/public/index.html Paste the below code inside the file. <!DOCTYPE html> <html> <body> <h1>Test page with HTTPS</h1> </body> </html> Save the file. Now go ahead and check your domain name in browser (domainname.com). You will see that your domain got redirected to HTTPS and see the HTML output. Supercharge your Linux Administration Career with completed training course and get your dream job. Conclusion Now you have learned how to install Let’s Encrypt Free SSL with Apache on Debian 11. Thanks for your time. If you face any problem or any feedback, please leave a comment below. |