I am trying to write a small application that accesses a web service, but the web service has an invalid SSL certificate. I can not control this fact, since it is controlled by a third party.
I tried to access the site through IE (as an administrator and as my own user) and install the certificate, but it does not seem to be very much, since the next time I get the same error.
When I run svcutil, I get the following output:
C:\Personal>svcutil.exe https://b2b:9443/LiveFeed.svc?wsdl
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152]
Copyright (c) Microsoft Corporation. All rights reserved.
Attempting to download metadata from 'https://b2b:9443/LiveFeed.svc?wsdl' using
WS-Metadata Exchange or DISCO.
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152]
Copyright (c) Microsoft Corporation. All rights reserved.
Error: Cannot obtain Metadata from https://b2b:9443/LiveFeed.svc?wsdl
If this is a Windows (R) Communication Foundation service to which you have acce
ss, please check that you have enabled metadata publishing at the specified addr
ess. For help enabling metadata publishing, please refer to the MSDN documentat
ion at http://go.microsoft.com/fwlink/?LinkId=65455.
WS-Metadata Exchange Error
URI: https://b2b:9443/LiveFeed.svc?wsdl
Metadata contains a reference that cannot be resolved: 'https://b2b:9443/Liv
eFeed.svc?wsdl'.
Could not establish trust relationship for the SSL/TLS secure channel with a
uthority 'b2b:9443'.
The underlying connection was closed: Could not establish trust relationship
for the SSL/TLS secure channel.
The remote certificate is invalid according to the validation procedure.
HTTP GET Error
URI: https://b2b:9443/LiveFeed.svc?wsdl
There was an error downloading 'https://b2b:9443/LiveFeed.svc?wsdl'.
The underlying connection was closed: Could not establish trust relationship
for the SSL/TLS secure channel.
The remote certificate is invalid according to the validation procedure.
If you would like more help, type "svcutil /?"
I know the problem is with an invalid certificate, but I cannot trust this certificate. How can i do this?
, , - , . , , - .
, , , , .
.