AME Root CA is not a trusted authority in Azure VMs

Ankit Singhal (SPECIAL CLOUD) 1 Reputation point
2021-06-16T07:33:32.867+00:00

We are facing an issue with Azure VMs that AME Root certificate is not added as the trusted authority in the Azure VMs and hence certificate load fails when we try to load the valid certs from the local store.

Background:
As part of the certificate management and auto-rotation we have to change the certificate issuers to AME (because in AAD and Geneva, AME is the trusted authority and for allowlisting the certificate based on subject names the cert should be issued by AME).
Also the certificate is installed in the VM but its Root certificate is not installed.

Now, when we try to get the certificate by passing the validOnly flag as true, the certificate load fails :
X509Certificate2Collection certs = store.Certificates.Find(X509FindType.FindBySubjectDistinguishedName, certificateSubject, true);

However installing the Root CA manually and using the same call, certificate is loaded as expected.

Ask:
Can we please check why AME Root is not allowed as the trusted issuer and what is needed to add it has the trusted one in all VMs.

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