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

13,477

Solution 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.

Solution 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.

Solution 3

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

Share:
13,477
Piotr Owsiak
Author by

Piotr Owsiak

Updated on June 04, 2022

Comments

  • Piotr Owsiak
    Piotr Owsiak about 2 years

    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?