diff --git a/mcs/class/System/Mono.UnityTLS/CertHelper.cs b/mcs/class/System/Mono.UnityTLS/CertHelper.cs index c21b12cb9d5b..d3701afd1031 100644 --- a/mcs/class/System/Mono.UnityTLS/CertHelper.cs +++ b/mcs/class/System/Mono.UnityTLS/CertHelper.cs @@ -18,16 +18,6 @@ public static void AddCertificateToNativeChain (UnityTls.unitytls_x509list* nati fixed(byte* certDerPtr = certDer) { UnityTls.unitytls_x509list_append_der (nativeCertificateChain, certDerPtr, certDer.Length, errorState); } - - var certificateImpl2 = certificate.Impl as X509Certificate2Impl; - if (certificateImpl2 != null) { - var intermediates = certificateImpl2.IntermediateCertificates; - if (intermediates != null && intermediates.Count > 0) { - for (int i=0; i