Skip to content

How to resolve error System.Security.Authentication.AuthenticationException Mono.Security.Interface.TlsException: CertificateUnknown

When trying to connect to a TLS-enabled endpoint on a public Cloud resource (for example on an Azure VM), you receive the following error. {System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. —> Mono.Security.Interface.TlsException: CertificateUnknown. This KB article provides guidance on how to resolve error System.Security.Authentication.AuthenticationException Mono.Security.Interface.TlsException: CertificateUnknown.

This error stems from the Mono.Security library which comes with the Xamarin development framework. If you are using Xamarin and the Mono.Security library in a code implementation running on a public cloud resource, you are likely to hit this error. Due to increased security requirements, including PCI compliance, major cloud providers and web servers already have stopped or are expected to stop supporting TLS versions older than 1.2. Xamarin projects created in previous versions of Visual Studio default to use older versions of TLS (earlier than TLS 1.2).

Make use of the tools below to verify which TLS versions and security cipher suites are enabled and configured on your server and on your Windows-based or Linux-based machines. If you have a TLS version earlier than 1.2, you will then need to configure the same TLS version on the public Cloud equivalent, e.g. on an Azure VM.

This article provided guidance on how to resolve error System.Security.Authentication.AuthenticationException Mono.Security.Interface.TlsException: CertificateUnknown.

https://learn.microsoft.com/en-us/archive/msdn-technet-forums/b18691a6-0c13-4cc3-9b19-67aa6e3210b6

https://stackoverflow.com/questions/58922620/client-handler-not-recognizing-my-trusted-api-certificate

  1. Triage: Review monitoring dashboards or error metrics for initial anomaly spikes or timeout signatures.
  2. Record Evidence: Export service diagnostic logs, event viewers, or failure traces.
  3. Analyze: Correlate error signatures against known infrastructure or configuration limits.
  4. Correlate: Match active incident timeline against recent deployments or scale events.
  5. Execute & Verify: Apply corrective remediation steps and verify telemetry baseline recovery.

5. Vendor Documentation & Validation Guardrails

Section titled “5. Vendor Documentation & Validation Guardrails”
  • Authority Reference: Cross-reference configuration changes against official vendor documentation.
  • Validation Gate: Require staging environment testing and Human-in-the-Loop SME approval before production changes.