Sunyao-work

Results 2 issues of Sunyao-work

Certificate collection is empty in code as below ` try { sslStream.AuthenticateAsClient(_hostname, new X509Certificate2Collection(), enabledSslProtocols, tlsConfig.CheckCertificateRevocation); } catch (Exception ex) { throw new Exception(string.Format("{0} - {1}", ex.Message, errorMessage), ex); }...

bug
tls

使用的excel模版 ![2022-11-29_11-02](https://user-images.githubusercontent.com/15246041/204428454-52a96910-1f24-4973-aa83-4c41174a6797.png) 出现NullReferenceException 的异常 ![2022-11-29_11-00](https://user-images.githubusercontent.com/15246041/204428453-49546bec-fe67-43c3-ac52-7c4c18d37007.png) 查看源码发现异常原因如下 ![image](https://user-images.githubusercontent.com/15246041/204428699-7a421efa-371c-4df4-b4c1-c2e08fe5497b.png) 从代码层面看如果进入此步骤必然会出现NullReferenceException