The issue is most likely an Azure-wide issuer change that is described here: https://learn.microsoft.com/en-us/azure/security/fundamentals/tls-certificate-changes. Ensuring the latest issuer / root certificates are on the VM running the tasks in Azure DevOps is the correct way to mitigate this issue -- ignoring TLS failures is of course extremely dangerous.
Deploy custom policies with Azure Pipelines - Failing Recently SSL/TLS Error
Hi,
I have been using the following to upload policies in my pipeline: https://learn.microsoft.com/en-us/azure/active-directory-b2c/deploy-custom-policies-devops
A few weeks ago this all stopped working, I traced it to the call for Invoke-RestMethod failing with the following error:
System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
I can see for https://graph.microsoft.com/ the certificate was updated around the time I started to see issues.
Anyone else with this issue or know how to get it working again.
Thanks