我们的证书即将到期,我们认为更改它以及使用它的服务就像更新证书并使用证书的新指纹更新服务一样简单,但事实并非如此。
现在,这段代码是继承的,不是我写的,所以我试图弄清楚。它在这里中断:
var issuedToken = channel.Issue(rst) as GenericXmlSecurityToken;
据说这件事所涉及的所有服务也已使用新证书进行了更新。任何指针都非常感谢!
抛出的异常:
System.ServiceModel.CommunicationException 被捕获 HResult=-2146233087 消息=接收对 https://***ipsts/Service.svc/IWSTrust13 的 HTTP 响应时发生错误。这可能是由于服务端点绑定未使用 HTTP 协议。这也可能是由于服务器中止了 HTTP 请求上下文(可能是由于服务关闭)。有关更多详细信息,请参阅服务器日志。Source=mscorlib StackTrace:服务器堆栈跟踪:在 System.ServiceModel.Channels.HttpChannelFactory 的 System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException,HttpWebRequest 请求,HttpAbortReason abortReason)
1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.SecurityChannelFactory
WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst, RequestSecurityTokenResponse& rstr) 在 Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst) 在 Mobile_Service.Code.ECNSecurityTokenService.GetClaimsPrincipalWithUserName(String userName, String password) 在 C:\Development\Mobile Service\Mobile Service\Code\ECNSecurityTokenService.cs:line 59 InnerException: System.Net.WebException HResult=-2146233079 Message=底层连接已关闭:接收时出现意外错误。Source = System StackTrace:在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan 超时)的 System.Net.HttpWebRequest.GetResponse() InnerException:System.IO。IOException HResult=-2146232800 消息=无法从传输连接读取数据:现有连接被远程主机强制关闭。Source=System StackTrace:在 System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count) 在系统。 Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) 在 System. Net.Security._SslStream.ProcessRead(Byte[] 缓冲区,Int32 偏移量,Int32 计数,