I was exploring SAN certs and was able to connect to the machine with domains specified in the SAN fields during CSR creation. But I was unable to connect to the machine with the common name specified in the CSR.
Below error is what I get on connecting, even though the servers certificate has the common name:
curl: (51) Unable to communicate securely with peer: requested domain name does not match the server's certificate.
What am I missing?