PKCS12_get_friendlyname(3ssl)

PKCS12_get_friendlyname3ssl

Retrieve the friendlyname attribute from a pkcs#12 safebag

Usage

 #include <openssl/pkcs12.h>
 char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag);

Overview

PKCS12_get_friendlyname() retrieves a UTF-8 string representation of the PKCS#9 friendlyName attribute for a PKCS#12 safeBag item.

bag is the PKCS12_SAFEBAG to retrieve the attribute from.

Return values

A UTF-8 string, or NULL if the attribute was either not present or an error occurred.

The returned string is allocated by OpenSSL and should be freed by the user.

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.