SSL Certifcate问题Asp.Net应用程序

时间:2018-01-29 15:43:25

标签: c# asp.net ssl asp.net-web-api ssl-certificate

我有一个启用了SSL的Web API,当我们尝试从.net Web应用程序访问此webAPI时,我们收到以下错误。我们也指向正确的证书路径。这可能是因为导入证书不正确吗?

System.Security.Cryptography.CryptographicException: Cannot find the original signer.
at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
at System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromFile(String fileName, IntPtr password, UInt32 dwFlags, Boolean persistKeySet, SafeCertContextHandle& pCertCtx)
at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromFile(String fileName, Object password, X509KeyStorageFlags keyStorageFlags)
at System.Security.Cryptography.X509Certificates.X509Certificate2.Import(String fileName)

0 个答案:

没有答案