Hello,
I am making some changes in OpenCA 0.9.1.8 and I need some help with
the following problem. I need to check if a given password is correct
and so it can decrypt an encrypted private key.
I usually make "basic" CSR, so all the proccess concerning the
generation of private&public keys and the request is done in the
server. In this case, I know that this private key it's stored in RA
database (exactly, it is a part of "data" column in "request" table),
but there's no information about the passphrase you have to insert
before you submit a CSR in order to encrypt the private key.
What I need its a valid method to check if a given password it's valid
to decrypt that stored private key. So, I need:
1) to get that private key from the database (it's related to a req,
not a cert).
[I can get the cert from the database, and even parse it, but I
don't know how to get the private key. In which format it's stored?]
2) then, use some algorithm to confirm wheter the password it's OK or not.
Can anyone help me?
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Openca-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openca-users