เปิดใช้งาน HTTPSอัตโนมัติด้วย Certbot ใช้ SSL ของ Let’s Encrypt

บทความนี้สำหรับ Apache บน CentOS 6

วิธีติดตั้ง


wget https://dl.eff.org/certbot-auto

sudo mv certbot-auto / usr / local / bin / certbot-auto

sudo chown root / usr / local / bin / certbot-auto

sudo chmod 0755 / usr / local / bin / certbot-auto

เริ่ม

Certbot มีปลั๊กอิน Apache ซึ่งได้รับการสนับสนุนในหลาย ๆ แพลตฟอร์มและทำการติดตั้งใบรับรองโดยอัตโนมัติ


$ sudo / usr / local / bin / certbot-auto –apache

ต่ออายุอัตโนมัติ

Certbot สามารถกำหนดค่าให้ต่ออายุใบรับรองของคุณโดยอัตโนมัติก่อนที่จะหมดอายุ เนื่องจาก Let’s Encrypt ใช้งานล่าสุดเป็นเวลา 90 วันขอแนะนำอย่างยิ่งให้ใช้ประโยชน์จากคุณลักษณะนี้ คุณสามารถทดสอบการต่ออายุอัตโนมัติสำหรับใบรับรองของคุณโดยใช้คำสั่งนี้:


$ sudo /usr/local/bin/certbot-auto renew



แนะนำให้ใช้ crontab


0 0,12 * * * python -c ‘import random; import time; time.sleep(random.random() * 3600)’ && /usr/local/bin/certbot-auto renew

แค่นี้เว็บไซด์ทั้งหมดใน Apache บน CentOS 6 ก็จะสามารถใช้ https ฟรีได้แล้ว

Div24Hr.COM
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.