您好我已經從wsdl文件在eclipse中創建了一個Web服務客戶端。但是當我嘗試從客戶端訪問服務時,它說。 沒有可用於端點的SSL配置。然後是我的端點地址。 請讓我知道如何通過密鑰存儲提供SSL配置給我的web服務客戶端。 我有客戶端提供的獨立客戶端和密鑰庫。 TIA向webService客戶端提供keystore
6
A
回答
1
您可以通過檢查什麼存在於你的密鑰庫開始:
keytool -list -keystore D:\Tomcat\ukdp.keystore -storepass 123456
您的管道定義可能會是什麼樣子sample: -
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sec="http://cxf.apache.org/configuration/security"
xmlns:http="http://cxf.apache.org/transports/http/configuration"
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
xsi:schemaLocation="
http://cxf.apache.org/configuration/security
http://cxf.apache.org/schemas/configuration/security.xsd
http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<http:conduit name="{http://apache.org/hello_world}HelloWorld.http-conduit">
<http:tlsClientParameters>
<sec:keyManagers keyPassword="password">
<sec:keyStore type="JKS" password="password"
file="my/file/dir/Morpit.jks"/>
</sec:keyManagers>
<sec:trustManagers>
<sec:keyStore type="JKS" password="password"
file="my/file/dir/Truststore.jks"/>
</sec:trustManagers>
<sec:cipherSuitesFilter>
<!-- these filters ensure that a ciphersuite with
export-suitable or null encryption is used,
but exclude anonymous Diffie-Hellman key change as
this is vulnerable to man-in-the-middle attacks -->
<sec:include>.*_EXPORT_.*</sec:include>
<sec:include>.*_EXPORT1024_.*</sec:include>
<sec:include>.*_WITH_DES_.*</sec:include>
<sec:include>.*_WITH_AES_.*</sec:include>
<sec:include>.*_WITH_NULL_.*</sec:include>
<sec:exclude>.*_DH_anon_.*</sec:exclude>
</sec:cipherSuitesFilter>
</http:tlsClientParameters>
<http:authorization>
<sec:UserName>Betty</sec:UserName>
<sec:Password>password</sec:Password>
</http:authorization>
<http:client AutoRedirect="true" Connection="Keep-Alive"/>
</http:conduit>
</beans>
另外,我發現了一些帖子,可以幫助您: -
3
您可以通過使用Apache CXF並設置客戶端管道來完成此操作。請參閱this great tutorial中的Configuring SSL Support
部分。
希望這會有所幫助。
+0
謝謝這幫了我 – ankit 2014-02-26 04:03:36
相關問題
- 1. 無法創建webservice由weblogic提供的客戶端
- 2. flex webservice客戶端
- 3. Axis2 webservice客戶端weblogic webservice客戶端jar confilct
- 4. 超時webservice客戶端
- 5. Java休息webservice客戶端
- 6. SOAPUI客戶端測試webService
- 7. WCF webservice的restlet客戶端
- 8. webservice客戶端的配置
- 9. Web客戶端提供了錯誤
- 10. Keycloak - 身份提供者和客戶端
- 11. Javascript/Express - 爲客戶端提供圖像
- 12. 向使用HTTP的客戶端提供EJB
- 13. 節點不向遠程客戶端提供圖像
- 14. 應該從客戶端向OAuth提供商發送什麼
- 15. 向客戶端提供/導出可執行文件
- 16. 你如何向客戶端提供SQL與你的軟件?
- 17. Meteor 1.0 MiniMongo不向客戶端提供對象
- 18. 如何向http-client-tls提供客戶端證書?
- 19. Ruby-Rails直接向客戶端提供ftp文件
- 20. 無法向客戶提供pdf附件
- 21. WCF錯誤未提供客戶端證書。指定ClientCredentials客戶端證書
- 22. Webservice客戶端創建方法
- 23. 爲Webservice客戶端實現ActiveRecord
- 24. perl webservice的JAX-WS客戶端
- 25. 從wsdl創建Webservice客戶端url
- 26. c#webservice客戶端 - 日期格式
- 27. WebService客戶端的樣式設計
- 28. REST webservice與Android客戶端vs RPC
- 29. webservice客戶端上的包裝器
- 30. 使用WebService客戶端的異常(MyEclipse)
你使用哪種技術? – Ellis 2013-10-02 10:05:51
ibm jdk與碼頭服務器 – ankit 2013-10-02 17:40:31