I've got a server that has domain and an SSL Certificate issued to that domain.
It's expected behavior that when an IP address is browsed, it redirects to the domain name of the server and the SSL Certificate is valid. e.g:
https://ip => https://example.com
In my case, if I put in the IP, it stays as an IP in the URL bar and the certificate becomes invalid.
https://ip => https://ip
My question is, is there a security risk if a server doesn't resolve it's domain name and stays on IP with an invalid SSL Certificate?