0
votes

in .net core we are trying to add wcf service reference and show us TLS SSL issue. Would it be possible that if the end point is requiring credentials?

from connected service > chose wcf to add > add the URI (ends with .svc) > keeping all defaults in next pages, clicking on finish shows below message. there is no other details. error image

1
I am not sure what is being asked here could you add some examples or code to describe your problem? see stackoverflow.com/help/minimal-reproducible-example for help - dfedde
added error screen shot - rahul
Can you access the url in some other way and download the XML to a file? You can use this XML file to add a WCF service reference. - Edminsson

1 Answers

0
votes

This typically indicates that the server uses SSL certificates to protect its communication, and does not explicitly require the client to provide a certificate for authentication.
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/working-with-certificates
In the SSL communication process, a trust relationship needs to be established. Therefore, the client needs to have the necessary conditions to establish SSL communication. When adding service references on the client-side, the server's WSDL will be downloaded and used. During this process, please trust the server certificate and ensure that TLS communication is supported on the client-side.
https://docs.microsoft.com/en-us/dotnet/framework/network-programming/tls
Besides, I advise you get the WSDL file by browser first. Likewise, this also requires the above. After establishing the trust relationship, the browser address bar should have a secure lock flag. Subsequently, try it again in the Adding service reference dialog.
enter image description here
Feel free to let me know if there is anything I can help with.