[#PEM_X509_INFO_write_bio] = PEM_X509_INFO_write_bio :mrdocs: Write the certificate, CRL, and/or private key from an X509_INFO as PEM. == Synopsis Declared in `<openssl/pem.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int PEM_X509_INFO_write_bio( xref:BIO.adoc[BIO]* bp, xref:X509_INFO.adoc[X509_INFO] const* xi, xref:EVP_CIPHER-07.adoc[EVP_CIPHER]* enc, unsigned char const* kstr, int klen, xref:pem_password_cb.adoc[pem_password_cb]* cd, void* u); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | 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.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#