如何解决.NET 5 SOAP WCF 服务 ssl 错误客户端证书
我尝试使用 .NET 5 WCF-Framework 连接到 SOAP 服务,但客户端证书出现问题。客户端证书是一个“自签名”生成的(从 SOAP 服务提供者)ssl 证书。如果我在 windows 钥匙串上安装证书一切正常,但我无法在生产系统上安装证书,因为许多其他客户使用相同的证书。如果 Windows 信任自签名证书(许多用户知道私钥),我认为这是不信任的。
如果证书不在 Windows 钥匙串中,则代码抛出此异常:
E/DecorView: mWindow.mActivityCurrentConfig is null
E/DecorView: mWindow.mActivityCurrentConfig is null
I/chatty: uid=10293(com.alquran.tafhimul_quran) identical 1 line
E/DecorView: mWindow.mActivityCurrentConfig is null
D/ViewRootImpl@ec670c4[DownLoading: ]: ViewPostIme key 0
E/DecorView: mWindow.mActivityCurrentConfig is null
D/ViewRootImpl@ec670c4[DownLoading: ]: ViewPostIme key 1
D/ViewRootImpl@ec670c4[DownLoading: ]: dispatchDetachedFromWindow
W/InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
D/InputTransport: Input channel destroyed: '465d15 ',fd=136
D/ViewRootImpl@bc87539[_StartActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
D/InputMethodManager: prepareNavigationBarInfo() DecorView@27432[_StartActivity]
D/InputMethodManager: getNavigationBarColor() -855310
E/ViewRootImpl: sendUserActionEvent() mView returned.
他们有什么方法可以信任 .net 中的证书吗? (ServicePointManager.ServerCertificateValidationCallback 和 ServerCertificateCustomValidationCallback 不起作用)
CommunicationException: An error occurred while sending the request.
HttpRequestException: An error occurred while sending the request.
WinHttpException: Could not establish trust relationship for the SSL/TLS secure channel with authority
谢谢!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。