How do I tell WCF to skip verification of the certificate?

后端 未结 2 1642
Happy的楠姐
Happy的楠姐 2020-12-02 17:16

Trying to make a web service call to an HTTPS endpoint in my Silverlight application results in this error: \"Could not find a base address that matches scheme https for the

2条回答
  •  借酒劲吻你
    2020-12-02 17:51

    This does not look like an certificate validation error. It looks like a webservice configuration error. Can you post the config for your endpoint on the server?

    WCF services don't support SSL by default, you need to enable transport security by creating a binding configuration and pointing your endpoint to it with the bindingConfiguration attribute.

    Here is a sample binding configuration that supports SSL:

    
      
        
          
            
          
        
      
    
    

    and your endpoint config would look like this:

    
    

提交回复
热议问题