Web サービスにアクセスする小さなアプリを作成しようとしていますが、Web サービスの SSL 証明書が無効です。第三者によって管理されているため、この事実を制御することはできません。
IE 経由で (管理者および自分のユーザーとして) サイトにアクセスし、証明書をインストールしようとしましたが、次回参照するときに同じエラーが発生するため、あまり効果がないようです。
svcutil を実行すると、次の出力が得られます。
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 /?"
問題は証明書が無効であることに関係していることはわかっていますが、証明書を信頼できるようにすることはできません。どうすればこれを行うことができますか?
これまでに行ったことは、エラーをクリックし、証明書を表示してインストールすることです。Windowsがそれ自体を選択する証明書ストアと、個人用および信頼できるストアでこれを試しましたが、どれも違いはありません。
これをなんとか解決できたとしても、私たちが 2 つの異なる国にいることを考えると、顧客の PC にアプリケーションをインストールするときに問題が発生するのではないかと心配しています。
どんな助けでも大歓迎です。