Hi,
I didnt understand the problem.   You want to encrypt the Private key.
With which key you want to encrypt and what encryption algorithm you would
like to use.
If you are using the DES encryption then the functions EVP_encrypt_init(),
EVP_encrypt_update() and EVP_encrypt_final() functions.  Thats the help I
can do.

Regards
Chandu
----- Original Message -----
From: Ahmad Syukri <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 19, 2001 4:48 PM
Subject: Encrypt Private Key


Hi,

Someone... plz help me! Could you plz tell me how to use PKCS8_encrypt()
function? I tried to encrypt private key, but don't know how. The only clue
I know is by using this function. It doesn't work! Part of my code as below.
Sorry to bother you all, but I don't have much time... HELP! HELP!



 X509_SIG *p8 = PKCS8_encrypt(pbe_nid, cipher,p8pass, strlen(p8pass),NULL,
0, iter, p8inf));
 PEM_write_bio_PKCS8(out, p8);

OUTPUT:
-------

 -----BEGIN ENCRYPTED PRIVATE KEY-----
 -----END ENCRYPTED PRIVATE KEY-----

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to