SSL on multiple local IPs

bakhanbeigi

Cadet
Joined
Dec 21, 2022
Messages
2
I have defined two local IPs on my Truenas Scale one for accessing web ui and the other for Traefic to access apps using domain names.
I've added the certifications using acme.sh for a wildcard *.mydomain.com.
It works correctly on web ui but when I try to access apps ssl is not valid. I am wondering if there is a way to use the certificate on second IP address or both of them
 

essinghigh

Dabbler
Joined
Feb 3, 2023
Messages
19
Apologies if I'm misunderstanding your question, but could you not define a SAN for the IP Addresses when generating a cert? Unfortunately am not familiar with acme.sh so can only provide an example for openssl

openssl req -nodes -x509 -sha256 -newkey rsa:4096 \
-keyout example.key \
-out example.crt \
-days 365 \
-subj "/C=GB/ST=London/L=London/O=Example/OU=Example/CN=*.example.com" \
-addext "subjectAltName = DNS:10.0.0.2,DNS:10.0.0.3"
 
Top