views:

551

answers:

2

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?

+2  A: 

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.

Shiraz Bhaiji
I was thinking more of a "ignore the issue" switch, but I actually used your solution in the end.Thanks.
Piotr Owsiak
A: 

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

Rod
I actually needed to run svcutil from another process. Shiraz Bhaiji's workaround worked well. I just made sure the certificate is installed, then svcutil run fine.
Piotr Owsiak