News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
"Could not acquire private key."  
by Ivana [andrici2002 at yahoo dot com]
posted on 2004/07/21

I'm getting this message when I'm trying to get the PrivateKey. the *.pvk exists and it's ok. My user account is administrator and I'm runing my app on framework 1.1. Can anybody help me?

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2004/07/25

Did you associate the private key with the certificate (AssociateWithPrivateKey)? Have you checked the HasPrivateKey property? What's the full stack trace of the exception?

by John
posted on 2004/07/28

I'm having exactly the same issue even trying to run the example application. The stack trace is as follows:

Unhandled Exception: Org.Mentalis.Security.Certificates.CertificateException: Co
uld not acquire private key.
at Org.Mentalis.Security.Certificates.Certificate.get_PrivateKey()
at AsymmetricCryptography.Main(String[] args)

I'm running this on Windows XP with v1.0.3705 of the .NET Framework. I've tried applying (and then removing) the most liberal permissions, but with no luck. If anyone does come up with an answer, I'd love to know 'cus it's got me stumped.

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2004/08/17

We've made some changes to the AssociateWithPrivateKey method. Can you verify whether the change solves the problem you're seeing?

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.