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. Web Development
  3. ASP.NET
  4. X509Certificate2 problem

X509Certificate2 problem

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netcryptographyhelpquestion
4 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.
  • D Offline
    D Offline
    Dirso
    wrote on last edited by
    #1

    Hi, I use this code to load a certificate X509Certificate2 cert = new X509Certificate2(filename, password); The problem is it works fine when the windows user is logged, but it crashed it it's not.... I found this solution but it doesn't work for me, since it was suppose to work without human intervention. Does any one know if it's possible just to load the certificate in a way that the ASP.NET code desn't try to store it?

    Thanks, Dirso

    G 1 Reply Last reply
    0
    • D Dirso

      Hi, I use this code to load a certificate X509Certificate2 cert = new X509Certificate2(filename, password); The problem is it works fine when the windows user is logged, but it crashed it it's not.... I found this solution but it doesn't work for me, since it was suppose to work without human intervention. Does any one know if it's possible just to load the certificate in a way that the ASP.NET code desn't try to store it?

      Thanks, Dirso

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      I think a similar issue was discussed on StackOverflow http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/f1981374-5a25-45c7-aea8-aad859800ae7[^] look for the reply by [kainhart] ymmv 'g'

      D 2 Replies Last reply
      0
      • G Garth J Lancaster

        I think a similar issue was discussed on StackOverflow http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/f1981374-5a25-45c7-aea8-aad859800ae7[^] look for the reply by [kainhart] ymmv 'g'

        D Offline
        D Offline
        Dirso
        wrote on last edited by
        #3

        Thank you very much! I'll try it tomorrow and let you know the result!

        Thanks, Dirso

        1 Reply Last reply
        0
        • G Garth J Lancaster

          I think a similar issue was discussed on StackOverflow http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/f1981374-5a25-45c7-aea8-aad859800ae7[^] look for the reply by [kainhart] ymmv 'g'

          D Offline
          D Offline
          Dirso
          wrote on last edited by
          #4

          It didn't work for me. I still got the same error. To solve it, I make the website just to register in the db what should be done with the certificate and then another application (a windows one) scheduled to run every minute will do it.

          Thanks, Dirso

          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