Birinci adimda acme.sh & scriptleri yukleyin
SSH uzerinden EdgeRouter baglanin ve asagidaki komutu calistirin.
curl https://raw.githubusercontent.com/j-c-m/ubnt-letsencrypt/master/install.sh | sudo bash
Yapilandirma
Aşağıdaki adımlarda aşağıdakileri değiştirin / doğrulayın:
subdomain.example.com – FQDN
192.168.1.1 – LAN IP of Router
WAN IP”nizi subdomain.example.com icin DNS kaydinizi ayarlayin.
SSH uzerinden EdgeRouter baglanin
Sertifikanizi baslatin.

sudo /config/scripts/renew.acme.sh -d subdomain.example.com
Sertifikanız için aynı WAN adresine eriştikleri sürece ek ortak adlar ekleyebilirsiniz:
sudo /config/scripts/renew.acme.sh -d subdomain.example.com -d subdomain2.example.com
Configuration moda girin.

configure
FQDN için LAN IP’sine statik ana host eşlemesi ayarlamasi.

set system static-host-mapping host-name subdomain.example.com inet 192.168.1.1
GUI için sertifika dosyası konumunu yapılandırın.

set service gui cert-file /config/ssl/server.pem
set service gui ca-file /config/ssl/ca.pem
Sertifikayı otomatik olarak yenilemek için görev zamanlayıcıyı yapılandırın.

set system task-scheduler task renew.acme executable path /config/scripts/renew.acme.sh
set system task-scheduler task renew.acme interval 1d
set system task-scheduler task renew.acme executable arguments ‘-d subdomain.example.com’
1. adımda birden fazla ad eklediyseniz, buraya ek adlar da eklemeniz gerekir.

set system task-scheduler task renew.acme executable arguments ‘-d subdomain.example.com -d subdomain2.example.com’
Commit, save and exit configuration mode.

commit
save
exit
Her seyi dogru yaptiysaniz bu adresten erisim saglamniz gerekir. https://subdomain.example.com

Bir yanıt yazın

Bu site, istenmeyenleri azaltmak için Akismet kullanıyor. Yorum verilerinizin nasıl işlendiği hakkında daha fazla bilgi edinin.