Temat: http://eko.one.pl/?p=openwrt-letsencrypt
root@OpenWrt:~# opkg install uhttpd libustream-openssl ip6tables kmod-ip6tables
Package uhttpd (2018-06-26-796d42bc-1) installed in root is up to date.
Installing libustream-openssl (2018-04-30-527e7002-3) to root...
Downloading http://downloads.openwrt.org/releases/1 … s_24kc.ipk
Package ip6tables (1.6.2-1) installed in root is up to date.
Package kmod-ip6tables (4.9.111-1) installed in root is up to date.
Collected errors:
* check_data_file_clashes: Package libustream-openssl wants to install file /lib/libustream-ssl.so
But that file is already provided by package * libustream-mbedtls
* opkg_install_cmd: Cannot install package libustream-openssl.
root@OpenWrt:~#
tu pojawia sie pierwszy problem
root@OpenWrt:~/.acme.sh# /etc/init.d/uhttpd stop
root@OpenWrt:~/.acme.sh# opkg install acme ca-certificates socat
Installing acme (2.7.8-3) to root...
Downloading http://downloads.openwrt.org/releases/1 … s_24kc.ipk
Package ca-certificates (20180409) installed in root is up to date.
Package socat (1.7.3.2-2) installed in root is up to date.
Configuring acme.
Collected errors:
* resolve_conffiles: Existing conffile /etc/config/acme is different from the conffile in the new package. The new conffile will be placed at /etc/config/acme-opkg.
root@OpenWrt:~/.acme.sh# /etc/init.d/acme disable
root@OpenWrt:~/.acme.sh# uci -q del acme.@acme[0].account_email
root@OpenWrt:~/.acme.sh# uci set acme.@acme[0].debug='1'
root@OpenWrt:~/.acme.sh# uci set acme.example.enabled='1'
root@OpenWrt:~/.acme.sh# uci set acme.example.update_uhttpd='1'
root@OpenWrt:~/.acme.sh# uci -q del acme.example.domains
root@OpenWrt:~/.acme.sh# uci add_list acme.example.domains='NIEEEEE.ddns.net'
root@OpenWrt:~/.acme.sh# uci commit acme
"I to już koniec konfiguracji. Uruchamiamy generowanie (uhttpd musi być w tym czasie wyłączony!)" - rzeczywiście koniec, bo nic się nie dzieje później.
root@OpenWrt:~/.acme.sh# /etc/init.d/uhttpd stop
Command failed: Not found
root@OpenWrt:~/.acme.sh# /etc/init.d/acme start
root@OpenWrt:~/.acme.sh#
nie miałem zaszczytu dojść do tego punktu programu :
"Czekamy cierpliwie na zakończenie procesu. W logu systemowym można znaleźć dużą liczbę informacji związanych z weryfikacją domeny i generowaniem certyfikatu. Wynikiem działania skryptów będzie katalog z nazwą podanej domeny w katalogu /etc/acme:
"
logread sypie
Sat Jul 28 16:00:00 2018 cron.info crond[859]: USER root pid 5537 cmd /bin/bash /root/sprawdzanie_IP.sh0 0 * * * /etc/init.d/acme start
Sat Jul 28 16:39:02 2018 daemon.err acme: state_dir and account_email must be set
Sat Jul 28 16:39:02 2018 daemon.err run-acme[7191]: acme: state_dir and account_email must be set
-------------------------------------------------------------------------------
podpunkt b
https://github.com/Neilpang/acme.sh/wik … on-OpenWRT
używając tej metody zatrzymuję się na :
root@OpenWrt:~# cd /root/.acme.sh
root@OpenWrt:~/.acme.sh# DOMAIN=NIEEE.ddns.net
root@OpenWrt:~/.acme.sh# iptables -I input_rule -p tcp --dport 443 -j ACCEPT -m comment --comment ACME
root@OpenWrt:~/.acme.sh# ./acme.sh --issue -d $DOMAIN -w /www
[Sat Jul 28 16:28:50 CEST 2018] Single domain='NIEEE.ddns.net'
[Sat Jul 28 16:28:51 CEST 2018] Getting domain auth token for each domain
[Sat Jul 28 16:28:51 CEST 2018] Getting webroot for domain='NIEEE.ddns.net'
[Sat Jul 28 16:28:51 CEST 2018] Getting new-authz for domain='NIEEE.ddns.net'
[Sat Jul 28 16:28:55 CEST 2018] The new-authz request is ok.
[Sat Jul 28 16:28:55 CEST 2018] Verifying:NIEEE.ddns.net
[Sat Jul 28 16:29:01 CEST 2018] Pending
[Sat Jul 28 16:29:04 CEST 2018] Pending
[Sat Jul 28 16:29:07 CEST 2018] Pending
[Sat Jul 28 16:29:10 CEST 2018] NIEEE.ddns.net:Verify error:Fetching http://NIEEE.ddns.net/.well-known/acme- … QgClCu8Z4: Timeout during connect (likely firewall problem)
[Sat Jul 28 16:29:10 CEST 2018] Please check log file for more details: /root/.acme.sh/acme.sh.log
debug:
--------------------
wyczytałem gdzieś , że nic nie zrobisz jak ISP blokuje port 80 bo mimo otwartego na routerze publicznie jest filtered.
--------------------------
openwrt 18.06.0-rc2