1

Azure Service Management API に接続しようとしています (これは、証明書が添付された WCF https 呼び出しです)。「権限 'management.core.windows.net' で SSL/TLS のセキュア チャネルを確立できませんでした。内部例外:要求が中止されました: SSL/TLS セキュア チャネルを作成できませんでした。」エラーを取得する

インターネットで提案されている次の設定を試しました。

ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;
ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;

証明書は、バイト配列を介してシリアル化されたオブジェクトとして添付されます。証明書ストアにないため、証明書ストアから読み取る際のアクセス許可の問題はありません。

これは、web.config の system.serviceModel の関連セクションです。

<bindings>
      <webHttpBinding>
        <binding name="WindowsAzureServiceManagement_WebHttpBinding" closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="00:10:00" sendTimeout="00:10:00">
          <readerQuotas maxStringContentLength="10000000" maxBytesPerRead="10000000" />
          <security mode="Transport">
            <transport clientCredentialType="Certificate" />
          </security>
        </binding>
      </webHttpBinding>
</bindings>
<client>
    <endpoint address="https://management.core.windows.net" 
                        binding="webHttpBinding" 
                        bindingConfiguration="WindowsAzureServiceManagement_WebHttpBinding" 
                        contract="AzureWatch.WindowsAzure.ServiceManagement.IServiceManagement" 
                        name="WindowsAzureEndPoint" />
  <endpoint address="https://api.authorize.net/soap/v1/Service.asmx" binding="basicHttpBinding" bindingConfiguration="ServiceSoap" contract="Service.ServiceSoap" name="ServiceSoap" />
</client>

助言がありますか?

4

0 に答える 0