locked
Security Exception RRS feed

  • Question

  • Hi,

    when i am using following code,i am getting exception even i have certificate in localmachine cert store.

    Actually the code executed perfectly fine yesterday.But now it was showing exception.

    Why does these kind of problems arise?

    code used:

    Dim offlineConnection As New OfflineWebApplicationConnection(Guid.Empty)
            offlineConnection.Authenticate()

    Exception:The specified certificate, CN=WildcatApp-c2f0957d-cc2d-483a-8f12-0bfe998c8a8e, could not be found in the LocalMachine certificate store,or the certificate does not have a private key.

    Thursday, August 11, 2011 2:31 PM

Answers

  • Hello,

    Can you try to export the private key (.pfx) from certificate store? The above issue can happen when certificate is not found in local store or when it doesn't have a private key.

    Thank you,


    Anish Ravindran
    • Marked as answer by testing_mhv Friday, August 12, 2011 12:55 PM
    Friday, August 12, 2011 3:04 AM

All replies

  • Hello,

    Can you try to export the private key (.pfx) from certificate store? The above issue can happen when certificate is not found in local store or when it doesn't have a private key.

    Thank you,


    Anish Ravindran
    • Marked as answer by testing_mhv Friday, August 12, 2011 12:55 PM
    Friday, August 12, 2011 3:04 AM
  • Hi,

    Actually it was already in the local certificate store.But i don't know why this exception raised.

    When i exported again it worked fine.I don't know why.

     

    Thank You.

    Friday, August 12, 2011 12:55 PM