Change the password protecting a PKCS#12 structure.

Synopsis

Declared in <openssl/pkcs12.h>

int
PKCS12_newpass(
    PKCS12* p12,
    char const* oldpass,
    char const* newpass);

Return Value

1 on success, 0 on error.

Parameters

Name

Description

p12

PKCS#12 structure to re‐encrypt.

oldpass

Current passphrase (UTF‐8, or ISO8859‐1 if not valid UTF‐8; use "" if none).

newpass

New passphrase (UTF‐8, or ISO8859‐1 if not valid UTF‐8).

Created with MrDocs