How to stop certificate errors temporarily with WCF services

后端 未结 5 762
独厮守ぢ
独厮守ぢ 2020-12-29 07:59

I am testing an early release of a WCF web service I have created. On the client side when I use VS to \'add service reference\' that all works.

But when I try to us

5条回答
  •  悲&欢浪女
    2020-12-29 08:46

    Modifying web.config worked for me

    I did it using Steve Ellinger's answer and some googling. Essentially, I had to:

    • tell manager of HTTP connections to use certificate without matching certificate name with server host name, and without checking whether the certificate has been revoked
    • modify endpoint behavior on client side in order to turn off certificate validation

    Here are the web.config snippets...

    
    
      
        
          
        
      
    
      
        
          
        
    
        
          
            
              
                
                  
                
              
            
          
        
      
    
    
    

提交回复
热议问题