PEM_write_bio_PKCS8

Write a PKCS#8 encrypted private-key envelope (X509_SIG) to a BIO in PEM form.

Synopsis

Declared in <openssl/pem.h>

int
PEM_write_bio_PKCS8(
    BIO* bp,
    X509_SIG const* x);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
bpBIO to write to.
xEncrypted PKCS#8 structure to encode.