PEM_read_PKCS8_PRIV_KEY_INFO

Read a PKCS#8 PrivateKeyInfo from a PEM-encoded FILE stream.

Synopsis

Declared in <openssl/pem.h>

PKCS8_PRIV_KEY_INFO*
PEM_read_PKCS8_PRIV_KEY_INFO(
    FILE* fp,
    PKCS8_PRIV_KEY_INFO** x,
    pem_password_cb* cb,
    void* u);

Return Value

PrivateKeyInfo on success, or NULL on failure.

Parameters

NameDescription
fpFILE to read from.
xOptional address of a PKCS8_PRIV_KEY_INFO pointer to reuse, or NULL.
cbPassword callback for encrypted PEM, or NULL.
uApplication data passed to cb.