gpt4 book ai didi

ssl - 无法建立信任关系 wso2 ESB

转载 作者:太空宇宙 更新时间:2023-11-03 14:18:45 26 4
gpt4 key购买 nike

您好,我正在通过 http 使用代理,所以当我看到这个错误时我很惊讶:

无法建立信任关系

System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)...

对于 ASP.NET 网络应用程序:

            Example1 es = new Example1();
try
{
int result = es.checkUserExists("bob");
TextBox1.Text = result.ToString();
}
catch (Exception ex) {
TextBox1.Text = ex.ToString();
}

我的代理如下:

<proxy xmlns="http://ws.apache.org/ns/synapse" name="Example1" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
<target>
<inSequence>
<property name="STATUS" value="asking_id" scope="default" type="STRING"/>
<log level="full">
<property name="insequence****" value="This is the in sequence"/>
<property xmlns:ns2="http://chi/" name="property_arg0" expression="//ns2:checkUserExists/arg0"/>
</log>
<send>
<endpoint>
<address uri="http://192.168.10.176:8080/Example1/UserExist/"/>
</endpoint>
</send>
</inSequence>
<outSequence>
<switch source="get-property('STATUS')">
<case regex="asking_id">
<log level="full">
<property name="sequence*******" value="outSequence - STATE 01 - asking for balance"/>
<property xmlns:ns2="http://chi/" name="property_result******" expression="//ns2:checkUserExistsResponse/return"/>
<property name="status********" expression="get-property('STATUS')"/>
</log>
<property xmlns:ns2="http://chi/" name="id_result" expression="//ns2:checkUserExistsResponse/return" scope="default" type="STRING"/>
<enrich>
<source type="inline" clone="true">
<ns2:getBalancebyID xmlns:ns2="http://chi/">
<arg0 xmlns="">?</arg0>
</ns2:getBalancebyID>
</source>
<target type="body"/>
</enrich>
<enrich>
<source type="property" clone="true" property="id_result"/>
<target xmlns:ns2="http://chi/" xpath="//ns2:getBalancebyID/arg0"/>
</enrich>
<property name="STATUS" value="response" scope="default" type="STRING"/>
<send>
<endpoint>
<address uri="http://192.168.10.176:8080/Example1/UserBalance"/>
</endpoint>
</send>
</case>
<case regex="response">
<log level="full">
<property name="sequence*******" value="outSequence - STATE 02 - returning balance"/>
</log>
<send/>
</case>
</switch>
</outSequence>
</target>
<publishWSDL key="conf:/UserExist.xml"/>
<description></description>
</proxy>

为什么我不能使用代理有什么建议吗?

谢谢你的帮助

最佳答案

这与 .Net App 有关。有许多关于此问题的可用资源

例如: http://support.microsoft.com/kb/823177

关于ssl - 无法建立信任关系 wso2 ESB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12624162/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com