// Token: 0x06000A45 RID: 2629 RVA: 0x00023950 File Offset: 0x00021B50
        private static bool IsValid(X509Certificate2 cert)
        {
            bool result = false;

            if (cert.HasPrivateKey && !InstantMessageCertUtils.IsExpired(cert) && !InstantMessageCertUtils.IsInvalidDate(cert))
            {
                result = true;
            }
            return(result);
        }
        // Token: 0x06000A40 RID: 2624 RVA: 0x000235F8 File Offset: 0x000217F8
        internal static void GetIMCertInfo(string thumbprint, out string certificateIssuer, out byte[] certificateSerial)
        {
            certificateIssuer = null;
            certificateSerial = null;
            string           thumbprint2     = thumbprint.Replace(" ", string.Empty);
            X509Certificate2 x509Certificate = InstantMessageCertUtils.FindCertByThumbprint(thumbprint2);

            if (x509Certificate != null && InstantMessageCertUtils.IsValid(x509Certificate))
            {
                InstantMessageCertUtils.DoesCertificateExpireSoon(x509Certificate);
                certificateIssuer = x509Certificate.Issuer;
                certificateSerial = x509Certificate.GetSerialNumber();
            }
        }