2013-04-26 12 views
6

पर कीस्टोर प्रदान करना हाय मैंने wsdl फ़ाइल से ग्रहण में एक वेब सेवा क्लाइंट बनाया है। लेकिन जब मैं क्लाइंट से सेवा तक पहुंचने का प्रयास करता हूं तो यह कहता है। एंडपॉइंट के लिए कोई SSL कॉन्फ़िगरेशन उपलब्ध नहीं है। और फिर मेरे अंतराल का पता। कृपया मुझे बताएं कि मैं अपने webservice क्लाइंट को कुंजी स्टोर के माध्यम से एसएसएल कॉन्फ़िगरेशन कैसे प्रदान कर सकता हूं। मेरे पास क्लाइंट द्वारा प्रदान किए गए स्टैंडअलोन क्लाइंट और कीस्टोर हैं। टीआईएवेब सेवा क्लाइंट

+0

कौन सा प्रौद्योगिकी आप का इस्तेमाल किया है? – Ellis

+0

जेटी सर्वर – ankit

उत्तर

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

के साथ ibm jdk धन्यवाद इसने मेरी मदद की – ankit

संबंधित मुद्दे