Write the certificate, CRL, and/or private key from an X509_INFO as PEM.
Declared in <openssl/pem.h>
int
PEM_X509_INFO_write_bio(
BIO* bp,
X509_INFO const* xi,
EVP_CIPHER* enc,
unsigned char const* kstr,
int klen,
pem_password_cb* cd,
void* u);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| bp | BIO to write to. |
| xi | Bundle whose non-NULL members are encoded. |
| enc | Optional cipher for encrypting a private key, or NULL. |
| kstr | Optional key material for enc, or NULL to prompt via cd. |
| klen | Length of kstr in bytes. |
| cd | Password callback used when encrypting without kstr, or NULL. |
| u | Application data passed to cd. |