BK क्लाउड / सिस्टम लेख
HI
English ENDeutsch DEEspañol ES中文 ZHFrançais FRPortuguês (Brasil) PT-BR日本語 JAहिन्दी HI
आइए बात करें ↗
← अनुभवों वाले लेखों पर वापस जाएँ

WordPress और Let’s Encrypt

संग्रह का नोट: यह लेख 2019 में उपलब्ध Ubuntu और Certbot टूलों का वर्णन करता है।

Ubuntu 18.04 पर Let’s Encrypt TLS certificate कॉन्फ़िगर करने का तरीका। यहां माना गया है कि Apache, LAMP stack और WordPress पहले से चल रहे हैं और domain आपके नियंत्रण में है।

add-apt-repository ppa:certbot/certbot
apt install python-certbot-apache
certbot –apache -d berndkuhlen.de -d www.berndkuhlen.de
certbot renew –dry-run

Certificate को अपडेट रखने के लिए Certbot cron job जरूर रखें।

मेरा उदाहरण यह है:

0 0 * * * /usr/bin/certbot renew >/home/ubuntu/certbot.txt 
2>/home/ubuntu/certbot.err

मेरी अपने-आप बनी कॉन्फ़िगरेशन यह है:

renew_before_expiry = 30 days
version = 0.31.0
archive_dir = /etc/letsencrypt/archive/berndkuhlen.de
cert = /etc/letsencrypt/live/berndkuhlen.de/cert.pem
privkey = /etc/letsencrypt/live/berndkuhlen.de/privkey.pem
chain = /etc/letsencrypt/live/berndkuhlen.de/chain.pem
fullchain = /etc/letsencrypt/live/berndkuhlen.de/fullchain.pem
Options used in the renewal process
[renewalparams]
account = SOMEACCOUNTID
authenticator = apache
installer = apache
server = https://acme-v02.api.letsencrypt.org/directory

मुझे आश्चर्य हुआ कि Certbot ने नए certificate को शामिल करने और port 443 पर सुनने के लिए मेरी Apache कॉन्फ़िगरेशन खुद अपडेट कर दी।