I’m running a webserver on a Raspberry Pi and got two different domain names which connects to it. One is connecting directly and the other connects over a port mapper service, because my ISP is delivering me DS-lite access, that means no global IPv4 address, only a global IPv6 address.
Unfortunately my first attempt to get a certificate, which is valid for both domains didn’t work:
letsencrypt certonly --webroot -w /var/www/ -d example.port-mapper.com:12345 -d example.com
Is giving me:
An unexpected error occurred: The request message was malformed :: Error creating new authz :: Invalid character in DNS name
Apperently the custom port :12345 is not supported. Is there a way to get a certificate which is valid for both of my domains?
Web server: nginx 1.10.3
OS: Raspian (Debian Strech)