Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF customBinding over HTTPS
    primarykey
    data
    text
    <p>I have a situation where i need to sign a soap request w/ a X509 certificate for consumption by a java web service. Thru the magic of WCF we were able to get the envelope formed properly and all looks great over standard http. However, once we move to HTTPS (required by client), we start receiving errors "Could not establish trust relationship for the SSL/TLS secure channel with authority" .. We've tried tweaking some settings and changing the target domain to other known HTTPS sites and we still receive the same error. Below is our client configuration, thanks so much in advance!</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;system.serviceModel&gt; &lt;bindings&gt; &lt;customBinding&gt; &lt;binding name="myCustomBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"&gt; &lt;textMessageEncoding messageVersion="Soap11" /&gt; &lt;security allowInsecureTransport="true" authenticationMode="MutualCertificate" requireDerivedKeys="false" keyEntropyMode="ClientEntropy" includeTimestamp="false" securityHeaderLayout="Lax" messageProtectionOrder="SignBeforeEncrypt" messageSecurityVersion="WSSecurity10WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10"&gt; &lt;secureConversationBootstrap /&gt; &lt;/security&gt; &lt;httpsTransport /&gt; &lt;/binding&gt; &lt;/customBinding&gt; &lt;/bindings&gt; &lt;behaviors&gt; &lt;endpointBehaviors&gt; &lt;behavior name="wsHttpCertificateBehavior"&gt; &lt;clientCredentials&gt; &lt;clientCertificate findValue="MyCertName" storeLocation="LocalMachine" x509FindType="FindByIssuerName"/&gt; &lt;serviceCertificate&gt; &lt;authentication revocationMode="NoCheck" trustedStoreLocation="LocalMachine" /&gt; &lt;/serviceCertificate&gt; &lt;/clientCredentials&gt; &lt;/behavior&gt; &lt;/endpointBehaviors&gt; &lt;/behaviors&gt; &lt;client&gt; &lt;endpoint address="https://www.SomeUrl.com" binding="customBinding" bindingConfiguration="myCustomBinding" behaviorConfiguration="wsHttpCertificateBehavior" contract="ServiceReference1.ServiceTest" name="untk48_dfSoap"&gt; &lt;identity&gt; &lt;certificateReference findValue="MyCertName" storeLocation="LocalMachine" x509FindType="FindByIssuerName"/&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;/client&gt; &lt;/system.serviceModel&gt; &lt;startup&gt; &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/&gt; &lt;/startup&gt; &lt;/configuration&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload