I am configuring a server that has both a public and private IP. It doesn't have any associated domain names.
Using a self-signed certificate to access the URL below works properly:
However, when I try to access that server using its private IP:
wget https://<PRIVATE IP>:8443
I get the following error:
ERROR: cannot verify 's certificate, issued by '/C=?/ST=?/L=?/O=?/OU=?/CN=Unknown': Self-signed certificate encountered. ERROR: certificate common name 'Unknown' doesn't match requested host name ''. To connect to insecurely, use `--no-check-certificate'.
Is there a way to specify in the configuration that both public and private IPs should be accepted?
I also tried including multiple connectors in server.xml containing the address attribute but it doesn't work.