如何在asp中使用Httpswebrequest类。启用FIPS模式时的网络应用程序?

时间:2017-08-11 17:35:43

标签: asp.net httpwebrequest fips

我有一个使用httpswebrequest从服务器获取xml的应用程序。 但是当启用Windows操作系统FIPS时,httpswebrequest.getresponse()函数会抛出异常。 它实际上是httpswebrequest.getresponse()调用堆栈中的MD5CryptoServiceProvider类错误,因为它不是FIPS的抱怨。  在启用FIPS时,使用上述方法是否是任何解决方案?

我可以强制设置httpwebrequest的内部加密方法等吗?

日志: 无法连接到设备。请检查设备。 System.Net.WebException:请求已中止:请求已取消。 ---> System.InvalidOperationException:此实现不是Windows平台FIPS验证的加密算法的一部分。

在System.Security.Cryptography.MD5CryptoServiceProvider..ctor()    在System.Net.HttpDigest.Interpret(String challenge,Int32 startingPoint,HttpWebRequest httpWebRequest)    在System.Net.DigestClient.DoAuthenticate(字符串质询,WebRequest webRequest,ICredentials凭据,布尔preAuthenticate)    在System.Net.DigestClient.Authenticate(字符串质询,WebRequest webRequest,ICredentials凭据)    在System.Net.AuthenticationManagerDefault.Authenticate(字符串质询,WebRequest请求,ICredentials凭据)    在System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest httpWebRequest,ICredentials authInfo)    在System.Net.HttpWebRequest.CheckResubmitForAuth()    在System.Net.HttpWebRequest.CheckResubmit(Exception& e,Boolean& disableUpload)    在System.Net.HttpWebRequest.DoSubmitRequestProcessing(异常和异常)    在System.Net.HttpWebRequest.ProcessResponse()    在System.Net.HttpWebRequest.SetResponse(CoreResponseData coreResponseData)    ---内部异常堆栈跟踪结束---    在System.Net.HttpWebRequest.GetResponse()    at km.Common.Communication.Http.CanGetHttpWebResponse(CommunicationInfo communicationInfo)

0 个答案:

没有答案
相关问题