PKCS12_add_localkeyid(3ssl)

PKCS12_add_localkeyid3ssl

Add the localkeyid attribute to a pkcs#12 safebag

Usage

 #include <openssl/pkcs12.h>
 int PKCS12_add_localkeyid(PKCS12_SAFEBAG *bag, const char *name,
                           int namelen);

Overview

PKCS12_add_localkeyid() adds an octet string representation of the PKCS#9 localKeyId attribute to a PKCS#12 safeBag.

bag is the PKCS12_SAFEBAG to add the attribute to.

Return values

Returns 1 for success or 0 for failure.

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

From openssl 3.6.5-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.