-
Notifications
You must be signed in to change notification settings - Fork 779
Description
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
[ y] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[ y] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
[ y] The title contains the plugin to which this issue belongs
Describe the bug
Acme client is unable to obtain a certificate for an IPv6 address. Letsencrypt reports a connection timeout when using the http-01 and tls-alpn-01 challenge type
To Reproduce
Steps to reproduce the behavior:
- Go to acme client, challenge types, create a tls or http challenge
- Uncheck IP Auto-Discovery, select the WAN interface, enter the WAN IP address (ipv6)
- Go to certificates, add the WAN ipv6 address to a new or existing certificate
- Select the tls or http challenge type.
- Save, and issue or reissue the certificate
Expected behavior
Expect the same behavior with an IPv6 address as we get with an IPv4 address: a successfully issued certificate, with the router's WAN IP address in the certificate's SAN field.
Relevant log files
2026-02-15T15:15:36-07:00
opnsense
AcmeClient: validation for certificate failed: 2001:56a:aaaa:bbbb:cccc:dddd:eeee:ffff
2026-02-15T15:15:36-07:00
opnsense
AcmeClient: domain validation failed (tlsalpn01)
2026-02-15T15:15:36-07:00
opnsense
AcmeClient: AcmeClient: The shell command returned exit code '1': '/usr/local/sbin/acme.sh --issue --syslog 6 --log-level 1 --server 'letsencrypt_test' --alpn --home '/var/etc/acme-client/home' --cert-home '/var/etc/acme-client/cert-home/6992416071cc65.00410618' --certpath '/var/etc/acme-client/certs/6992416071cc65.00410618/cert.pem' --keypath '/var/etc/acme-client/keys/6992416071cc65.00410618/private.key' --capath '/var/etc/acme-client/certs/6992416071cc65.00410618/chain.pem' --fullchainpath '/var/etc/acme-client/certs/6992416071cc65.00410618/fullchain.pem' --domain '2001:56a:aaaa:bbbb:cccc:dddd:eeee:ffff' --days '60' --force --cert-profile 'shortlived' --keylength 'ec-256' --tlsport '43581' --accountconf '/var/etc/acme-client/accounts/67b0ff51844b34.65852370_stg/account.conf''
2026-02-15T15:15:22-07:00
opnsense
AcmeClient: using challenge type: tls
2026-02-15T15:15:22-07:00
opnsense
AcmeClient: using IPv4 address: 50.99.xxx.yyy
Additional context
I have confirmed incoming requests on port 80 and 443 using tcpdump, as well as no response from the router. Based on the log, it appears that the acme client is not respecting the listen IP address from the challenge config and is using the WAN ipv4 address instead of the WAN ipv6 address. Not only is autodetect IP not working, manually setting it isn't either.
Environment
OPNsense 26.1.1-amd64
FreeBSD 14.3-RELEASE-p8
OpenSSL 3.0.19
os-acme-client 4.13