IBM Mobile First - Http请求失败:javax.net.ssl.SSLHandshakeException

时间:2016-07-18 16:10:36

标签: ibm-mobilefirst odata sap

我正在尝试使用SAP Netweaver网关适配器使用OData服务。但我面临的问题如下

  

运行时:Http请求失败:javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求目标的有效证书路径< / p>

这是我的worklight.properties

##########    MobileFirst SSL keystore  
#############################################
#SSL certificate keystore location.
ssl.keystore.path=conf/default.keystore
#SSL certificate keystore type (jks or PKCS12)
ssl.keystore.type=jks
#SSL certificate keystore password.
ssl.keystore.password=<keystorepassword>

这是我的adapter.xml

    <connectivity>
    <connectionPolicy xsi:type="nwgateway:NWGatewayHTTPConnectionPolicyType">
        <protocol>https</protocol>
        <domain>mydomain</domain>
        <port>myport</port>
        <connectionTimeoutInMilliseconds>30000</connectionTimeoutInMilliseconds>
        <socketTimeoutInMilliseconds>30000</socketTimeoutInMilliseconds>
        <serviceRootUrl>/sap/opu/odata/SAP/ZBIN_POC_SRV/</serviceRootUrl>
         <authentication>
            <basic/>
            <serverIdentity>
                <client>001</client>
                <username>username</username>
                <password>password</password>
            </serverIdentity>
        </authentication>   
        <!-- Following properties used by adapter's key manager for choosing specific certificate from key store-->  
        <sslCertificateAlias></sslCertificateAlias> 
        <sslCertificatePassword></sslCertificatePassword>
        <maxConcurrentConnectionsPerNode>50</maxConcurrentConnectionsPerNode>                           
    </connectionPolicy>     
</connectivity>

<procedure name="retrieveTravelAgency"/>

我也在这里导入了default.keystore,PFA enter image description here

以下是我关注的link

任何人都可以帮我解决这个问题,提前致谢。

0 个答案:

没有答案