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. C#
  4. Public Key & Certificate Validation

Public Key & Certificate Validation

Scheduled Pinned Locked Moved C#
csharpsysadminsecuritycryptographyhelp
5 Posts 2 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.
  • N Offline
    N Offline
    Nicholas Cardi
    wrote on last edited by
    #1

    Does any know of a way in C# to contact a web server and get the public SSL certificate information? I know all of this is handled by web service calls over https but I need the certificate to do some offline processing outside of webservices. Any help would be greatly appreciated. ~Nick

    Forever Developing

    L 1 Reply Last reply
    0
    • N Nicholas Cardi

      Does any know of a way in C# to contact a web server and get the public SSL certificate information? I know all of this is handled by web service calls over https but I need the certificate to do some offline processing outside of webservices. Any help would be greatly appreciated. ~Nick

      Forever Developing

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Take a look at the System.Security namespace

      led mike

      N 1 Reply Last reply
      0
      • L led mike

        Take a look at the System.Security namespace

        led mike

        N Offline
        N Offline
        Nicholas Cardi
        wrote on last edited by
        #3

        That namespace is used for code access security. I am interested in Public Key Encryption. I am look for a way to contact a web server and have it transmit me its public key. ~Nick

        Forever Developing

        L 1 Reply Last reply
        0
        • N Nicholas Cardi

          That namespace is used for code access security. I am interested in Public Key Encryption. I am look for a way to contact a web server and have it transmit me its public key. ~Nick

          Forever Developing

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          Sorry, I fat fingered it. System.Net.Security

          led mike

          N 1 Reply Last reply
          0
          • L led mike

            Sorry, I fat fingered it. System.Net.Security

            led mike

            N Offline
            N Offline
            Nicholas Cardi
            wrote on last edited by
            #5

            led mike, Thank for the information but I am not using sockets or streams. I have a set of files that are digitally signed and I want to make sure their signatures are valid. After getting the files and the digital signatures I need the URL's public key to validate the Signatures. Using Fiddler I noticed the following response on a 443 connect. However, I am not sure how this would translate to x509 certificate in C# code. ~Nick HTTP/1.1 200 Connection Established This is a HTTPS CONNECT Tunnel. Secure traffic flows through this connection. Secure Protocol: Tls Cipher: Rc4 128bits Hash Algorithm: Md5 128bits Key Exchange: RsaSign 1024bits Certificate: [Subject] CN=www.intellicheck.com, OU=Secure Link SSL, OU=Data Systems, O="Intelli-Check, Inc.", STREET=246 Crossways Park West, L=Woodbury, S=NY, PostalCode=11797, C=US [Issuer] CN=Network Solutions Certificate Authority, O=Network Solutions L.L.C., C=US [Serial Number] 00F36126851351E1E58CD16C5DA38A430C [Not Before] 9/5/2005 8:00:00 PM [Not After] 9/5/2008 7:59:59 PM [Thumbprint] BAF241B7E84E5663AE70D7470076EF1D0CAEF222

            Forever Developing

            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