WCF in asp.net core 2.0 - Could not establish trust relationship for the SSL/TLS secure channel with authority
问题 Previously I had an application targeting framework 4.5.1 and used Web Reference to add a WCF service. This works perfectly and was able to authenticate successfully with the server. old code: ServicePointManager.Expect100Continue = false; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; IService orderService = new Service(); // private method to load certificate var cert = LoadCertificate(@"....\00050._.1.p12", "pwd"); oIPGApiOrderService.ClientCertificates.Add(cert);