I have to consume wsdl with SSL client certificates and server certificate to validate server answer in C# .NET.
I still got an error Could not create SSL/TLS secure channel
What I have tried:
When I am using wsHttpBinding with
<security mode="Transport">
I get an errot about lack of
ws:security header
. When I choose TransportWithMessageCredential soap enveloped is signed but I got error
cannot create secure tls/ssl channel.
While debuging I have noticed that when security mode is transport while handshake there is:
TlsStream#6134445::.ctor(host=XXXXX, #certs=1)
and it is connecting to WS but I am getting error
missing ws:security header. But when I change to TransportWithMessageCredential I see in network.log:
TlsStream#29087245::.ctor(host=XXXXX, #certs=0)
and then I got an error about TLS/SSL channel. How can I configure my client to use SSL certificate for transport and sign a messge?