locked
WebService changes for access through https RRS feed

  • Question

  • Hi

    I have developed a webservice with VB.NET which has been accessed internally on my clients network for some years.

    Now they will tighten security and want the service to handle https requests.
    They have installed certificates on the servers involved but I guess I have to change something in my webservice. It doesn't respond when I try to access it using IE and requesting wsdl.

    This area is a bit of a blindspot too me, so any help is appreciated.


    Best Regards Peter Karlström Midrange AB, Sweden

    • Moved by Youen Zen Wednesday, November 28, 2012 8:31 AM Appropriate forum for this issue (From:Visual Basic General)
    Tuesday, November 27, 2012 10:06 AM

Answers

  • Hi,

    this link may help .


    One good question is equivalent to ten best answers.

    Wednesday, November 28, 2012 10:37 AM

All replies

  • Hi Peter,

    We have a forum ASMX Web Services and XML Serialization that discuss Web Service issues. Since this topic is mainly related to web service, I'l move this thread.

    Thanks for understanding.

    Best regards,


    Shanks Zen
    MSDN Community Support | Feedback to us

    Wednesday, November 28, 2012 8:30 AM
  • Hi,

    this link may help .


    One good question is equivalent to ten best answers.

    Wednesday, November 28, 2012 10:37 AM
  • Hi

    Your link helped a lot, and specially since I discovered that I didn't have to change anything in my WebService application.

    During tests however, I found a much simpler way of bypassing the certificate tests when consuming the service. Se code below.

    This is taken from Codeproject.com

    'ByPass SSL Certificate Validation Checking
    System.Net.ServicePointManager.ServerCertificateValidationCallback = _
      Function(se As Object, _
      cert As System.Security.Cryptography.X509Certificates.X509Certificate, _
      chain As System.Security.Cryptography.X509Certificates.X509Chain, _
      sslerror As System.Net.Security.SslPolicyErrors) True
     
    'Call web application/web service with HTTPS URL
    
    'Restore SSL Certificate Validation Checking
    System.Net.ServicePointManager.ServerCertificateValidationCallback = Nothing


    Best Regards Peter Karlström Midrange AB, Sweden

    Friday, November 30, 2012 2:25 PM