有没有办法强制svcutil.exe忽略SSL证书问题?

编程入门 行业动态 更新时间:2024-10-24 13:21:45
本文介绍了有没有办法强制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证书问题?

本文发布于:2023-11-05 07:43:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1560272.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:没有办法   证书   exe   svcutil   SSL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!