Hi all, i am trying to install certificates an i assume i am not easy with the concept.
here is the architecture
Internet | OpenWrt | NAS
xxx.xxx.xxx.xxx | 192.168.1.1 | 192.168.1.xxx
website Ovh : domo-tic.com
redirection : loft.domo-tic.com
zone DNS Type A : loft.domo-tic.com
I have upgraded openwrt to last release from scratch, and trying to install acme now after openvpn.
Ports 80/443 are opened
config rule 'wan_https_allow'
option name 'Allow HTTP, HTTPS from WAN'
option src 'wan'
option proto 'tcp'
option dest_port '80 443'
option target 'ACCEPT'
steps for installation
# https://openwrt.org/docs/guide-user/services/tls/acmesh
opkg update
opkg install acme acme-acmesh acme-acmesh-dnsapi acme-common
opkg install luci-app-acme luci-ssl-openssl
#https://github.com/acmesh-official/acme.sh/wiki/How-to-run-on-OpenWRT
opkg update
opkg install luci-app-uhttpd
# https://openwrt.org/docs/guide-user/luci/luci.secure#allow_access_from_internet
uci set uhttpd.main.redirect_https=1 # 1 to enable redirect, 0 to disable redirect
uci commit uhttpd
service uhttpd reload
to create api from ovh
https://api.ovh.com/createToken/?GET=/domain/zone/mydomain.com/&POST=/domain/zone/mydomain.com/&PUT=/domain/zone/mydomain.com/&GET=/domain/zone/mydomain.com&DELETE=/domain/zone/mydomain.com/record/
# cat /etc/config/acme
config acme
option account_email 'name.surname@xxx.xxx'
option debug '1'
config cert 'domotic_com'
option enabled '0'
option update_uhttpd '0'
option validation_method 'webroot'
option staging '0'
option key_type 'rsa2048'
list domains '*.domo-tic.com'
option webroot '/var/run/acme/challenge/'
config cert 'loft_domo_tic_com'
option enabled '1'
option validation_method 'dns'
option staging '0'
option dns 'dns_ovh'
list credentials 'OVH_AK="OVH API Application key"'
list credentials 'OVH_AS="OVH API Application secret"'
list credentials 'OVH_END_POINT="ovh-eu"'
list credentials 'OVH_CK="OVH API Application description"'
option key_type 'rsa2048'
list domains 'loft.domo-tic.com'
from my computer, running OpenVpn,
- List item
first, when accessing to openwrt
- List item
second, I use my NAS to aggregate all emails. my client show me a warning when trying to connect using 192.168.1.xxx
What i notice is C=US, maybe here is one of the problem ?
if i run
# /etc/init.d/acme restart
i notice this error : Error, can not get domain token entry *.domo-tic.com for http-01
The supported validation types are: dns-01 , but you specified: http-01
Many thanks for your help agan !
Arnaud