locked
SharePoint Web Service Exception - The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. RRS feed

  • Question

  • Hi All, I'm trying to call https://site/_vti_bin/authentication.asmx for form-based authentication (or non-windows auth.) , but failed, may I ask your advice/help for:

    1) How can I default trust the cert. or bypass it for testing?

    2) How can I do if I wanna call with certificate for production?

      WebRef.Auth.Authentication authService = new WebRef.Auth.Authentication();
                    authService.CookieContainer = new System.Net.CookieContainer();
                    authService.AllowAutoRedirect = true;
    
                     //Exception: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel
                    WebRef.Auth.LoginResult result = authService.Login(userName, password);


    .NET Beginner 3.5





    Thursday, December 22, 2016 4:37 AM

Answers

All replies