有没有办法强制svcutil.exe忽略SSL证书问题? [英] Is there a way to force svcutil.exe to ignore SSL certificate issues?

查看:168
本文介绍了有没有办法强制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证书问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆