[英]TLS1.2 connection from native Android app to Worklight server using wlclient library
[英]Cannot access WebService configured on TLS1.2 from Worklight HTTP Adapter
我試圖通過HTTP適配器從IBM Worklight 6.1應用程序服務器訪問第三方SOAP服務( securedSOAPService )。
以下是HTTP Adapter的adapter.xml配置,
<?xml version="1.0" encoding="UTF-8"?>
<wl:adapter xmlns:wl="http://www.worklight.com/integration" xmlns:http="http://www.worklight.com/integration/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="demoAdapter">
<displayName>demoAdapter</displayName>
<description />
<connectivity>
<connectionPolicy xsi:type="http:HTTPConnectionPolicyType">
<protocol>https</protocol>
<domain>mydomain.com</domain>
<port>8080</port>
</connectionPolicy>
<loadConstraints maxConcurrentConnectionsPerNode="2" />
</connectivity>
<procedure name="securedSOAPService" />
</wl:adapter>
以下是觀察結果:
當使用TLS1.2配置服務“ securedSOAPService ”時,服務返回“ javax.net.ssl.SSLPeerUnverifiedException:peer not authenticated ”。
當我們更改服務以使用TLS1.0時,它工作正常。
我想在TLS1.2上配置Service時啟用HTTP適配器。
注意 :Worklight服務器上未配置SSL。
最后,我們找到了一個解決方案,它適用於較新協議的有限密碼(即TLSv1.1,TLSv1.2),
注意:這僅適用於有限的密碼。 最佳做法是使用較新版本的java。
非常感謝Mohammed Ashfaq的幫助!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.