本文介绍了有没有办法强制svcutil.exe忽略SSL证书问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要svcutil.exe为我生成一个代理类,但问题是只能通过HTTPS访问Web服务,并且SSL证书是自签名的。
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.
如何强制svcutil.exe忽略此问题?
How can I force svcutil.exe to ignore this issue?
推荐答案您可以先尝试浏览https网站,忽略证书不受信任的警告,然后单击证书并安装它。
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.
然后再次尝试运行svcutil。
Then try running svcutil again.
更多推荐
有没有办法强制svcutil.exe忽略SSL证书问题?
发布评论