diff --git a/mcs/class/System/Mono.Btls/MonoBtlsProvider.cs b/mcs/class/System/Mono.Btls/MonoBtlsProvider.cs index 97c50aacab91..346d73be6de3 100644 --- a/mcs/class/System/Mono.Btls/MonoBtlsProvider.cs +++ b/mcs/class/System/Mono.Btls/MonoBtlsProvider.cs @@ -149,6 +149,12 @@ internal override bool ValidateCertificate ( X509CertificateCollection certificates, bool wantsChain, ref X509Chain chain, ref SslPolicyErrors errors, ref int status11) { + // Super ugly hack to make things work on Unity build servers + // FIXME: REMOVE THIS WHEN AGENTS RUN NEWER LINUX + if (Environment.OSVersion.Platform == PlatformID.Unix + && Environment.GetEnvironmentVariable ("UNITY_THISISABUILDMACHINE") != null) + return true; + if (chain != null) { var chainImpl = (X509ChainImplBtls)chain.Impl; var success = chainImpl.StoreCtx.VerifyResult == 1;