Write a private key as PEM PKCS#8 EncryptedPrivateKeyInfo (PKCS#5 v2.0).
Synopsis
Declared in <openssl/pem.h>
int
PEM_write_bio_PKCS8PrivateKey(
BIO* bp,
EVP_PKEY const* x,
EVP_CIPHER const* enc,
char const* kstr,
int klen,
pem_password_cb* cb,
void* u);
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
bp |
BIO to write to. |
x |
Private key to encode. |
enc |
Cipher used at the PKCS#8 level, or NULL for unencrypted PrivateKeyInfo. |
kstr |
Optional passphrase; if NULL and |
klen |
Length of |
cb |
Password callback when a passphrase is needed, or NULL. |
u |
Application data passed to |
Created with MrDocs