acme.sh & scripti yükleyin
ssh ile Edge Router”a baglanin
curl https://raw.githubusercontent.com/j-c-m/ubnt-letsencrypt/master/install.sh | sudo bash
Kurulum
subdomain.example.com – FQDN
192.168.1.1 – LAN IP Router
WAN IP ile subdomain DNS kaydini olusturun
Daha sonra
sudo /config/scripts/renew.acme.sh -d subdomain.example.com
veya coklu alt domain olusturabilirsiniz.
sudo /config/scripts/renew.acme.sh -d subdomain.example.com -d subdomain2.example.com
Konfiguration moda girin
configure
Setup static host mapping for FQDN to the LAN IP.
FQDN e LAN IP icin static host mapi edin
set system static-host-mapping host-name subdomain.example.com inet 192.168.1.1
GUI icin cert-file lokasyonu ayarlayin
set service gui cert-file /config/ssl/server.pem
set service gui ca-file /config/ssl/ca.pem
Configure task scheduler to renew certificate automatically.
Ayarlariin otomatik olmasi ve guncellenmesi icin asagidaki komutlari girin
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’
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
Simdi buradan edgeroutera ulasabilmeniz gerekiyor https://subdomain.example.com