PEM_write_PKCS8

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

Synopsis

Declared in <openssl/pem.h>

int
PEM_write_PKCS8(
    FILE* fp,
    X509_SIG const* x);

Return Value

1 on success, or 0 on failure.

Parameters

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