मेरे पास एक स्वयं हस्ताक्षरित प्रमाणपत्र का उपयोग करके आईआईएस 7 में चल रही डब्ल्यूसीएफ वेब सेवा है (यह सुनिश्चित करने के लिए अवधारणा का सबूत है कि यह वह मार्ग है जिसे मैं जाना चाहता हूं)। एसएसएल का उपयोग करना आवश्यक है।क्या डब्ल्यूसीएफ परीक्षण क्लाइंट को स्व-हस्ताक्षरित प्रमाणपत्र स्वीकार करने के लिए मजबूर करना संभव है?
क्या गैर-स्व-हस्ताक्षरित प्रमाणपत्र की आवश्यकता के बिना इस सेवा को डीबग करने के लिए डब्ल्यूसीएफ टेस्ट क्लाइंट का उपयोग करना संभव है?
जब मैं मैं इस त्रुटि मिलती है कोशिश:
Error: Cannot obtain Metadata from https:///Service1.svc If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.WS-Metadata Exchange Error URI: https:///Service1.svc Metadata contains a reference that cannot be resolved: 'https:///Service1.svc'. Could not establish trust relationship for the SSL/TLS secure channel with authority ''. The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. The remote certificate is invalid according to the validation procedure.HTTP GET Error URI: https:///Service1.svc There was an error downloading 'https:///Service1.svc'. The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. The remote certificate is invalid according to the validation procedure.
संपादित करें: यह सवाल एक वेब सेवा एक स्व-हस्ताक्षरित प्रमाणपत्र का उपयोग करते हुए पहले से ही एसएसएल के माध्यम से सुरक्षित परीक्षण करने के लिए WCF टेस्ट ग्राहक उपयोग के बारे में विशेष रूप से है। सर्वर पहले से ही प्रदान किए गए किसी प्रमाण पत्र को स्वीकार करने के लिए स्थापित है, यह डब्ल्यूसीएफ टेस्ट क्लाइंट है जिसके लिए मुझे ऐसा करने का कोई तरीका नहीं दिख रहा है।
मुझे इस कोड को डब्ल्यूसीएफ टेस्ट क्लाइंट (कोड जो मैं नियंत्रित नहीं करता) में जोड़ने का कोई तरीका नहीं देखता हूं। मैंने पहले ही इस कॉल को अपने कोड (सर्वर साइड) में जोड़ा है। –
बेशक, यह एक सही तरीका है यदि आप किसी अन्य सी # डब्ल्यूसीएफ क्लाइंट को एक स्व-हस्ताक्षरित सुरक्षा प्रमाणपत्र स्वीकार करने के लिए मजबूर करने की कोशिश कर रहे हैं। – stephen