Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. System.DirectoryServices and SSL Certificate Policies

System.DirectoryServices and SSL Certificate Policies

Scheduled Pinned Locked Moved .NET (Core and Framework)
securityquestioncsharpcomsysadmin
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    serious sam
    wrote on last edited by
    #1

    Hi all, I am interested in the way SSL Certificates are validated when using SecureSocketsLayer authentication to access a directory service over LDAP. Without going too much into it, this is what works: DirectoryEntry searchRoot = new DirectoryEntry(location, username, password, AuthenticationTypes.SecureSocketsLayer); object nativeObject = m_searchRoot.NativeObject; searchRoot.RefreshCache(); Of course, it only works when correct certificates are installed on the machine attempting to execute this code. If the certificates are not installed, then the SSL connection supporting the DirectoryEntry fails with a COMException, claiming the server is not operational. I would like to find where exactly the certificate is being checked, so I can override the validation behaviour. I need something similar to what is described here, but applies to a DirectoryEntry. The approach specified in the link doesn't solve my problem -- it doesn't seem like the System.Net.ServicePointManager.CertificatePolicy is used at all in my code. Does anyone have any ideas? Thanks in advance. Cheers, Misha

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups