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
 
Unable to import the PFX file! [error code = 2]  
by Michal
posted on 2004/09/21

Error occures while i am trying to create a certificate:
Certificate cert = Certificate.CreateFromPfxFile(certificatePfxFile, password);

Org.Mentalis.Security error '80131500'
Unable to import the PFX file! [error code = 2]

When trying to create certificate using my library (COM) from .NET application - everything is OK.
When trying from ASP ... error occures.

Running on:
Windows2000 Server SP4
Org.Mentalis.Security v1.0.13.709

Any help?

by Michal
posted on 2004/09/22

problem was solved specifying optional parameter:
bool exportable = false;

Certificate cert = Certificate.CreateFromPfxFile(certificatePfxFile, password, exportable);

 

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