AWS Cognito URL coming up with different cert from internet and Azure VM

curious7 251 Reputation points
2022-01-17T10:59:02.163+00:00

I am getting following error when I go to https://cognito-idp.ap-southeast-2.amazonaws.com/ from a Azure VM:-

NET::ERR_CERT_COMMON_NAME_INVALID

On investigation I noticed that the cert presented on Azure VM by the site has following CN and thus the above error:

CN = *.auth.ap-southeast-2.amazoncognito.com

Whereas if I try from internet then the cert presented is and thus no error:

CN = cognito-idp.ap-southeast-2.amazonaws.com

Why would that be the case?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,892 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.