Is there a way to force svcutil.exe to ignore SSL certificate issues?

浪尽此生 提交于 2019-12-07 11:09:07

问题


I need svcutil.exe to generate a proxy class for me, but the problem is that the web service can be accessed only via HTTPS and the SSL certificate is self signed.

How can I force svcutil.exe to ignore this issue?


回答1:


You could try browsing to the https site first, ignore the warning that the certificate is not trusted, then click on the certificate and install it.

This should result in the machine you are working on trusting the certificate.

Then try running svcutil again.




回答2:


One thing that seemed to work was to fire up Fiddler and have it running as you make the SVCUTIL requests. Fiddler's cert is valid and seems to work fine.




回答3:


+1 for using fiddler. You just need to go to the TOOLS > Fiddler Options and check Decrypt HTTPS.




回答4:


Browse to the https site, ignore the warning, save the wsdl, and generate the client class directly from the wsdl



来源:https://stackoverflow.com/questions/1234281/is-there-a-way-to-force-svcutil-exe-to-ignore-ssl-certificate-issues

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!