X509_get0_uids(3ssl)

X509_get0_uids3ssl

Get certificate and attribute certificate unique identifiers

Usage

 #include <openssl/x509.h>
 void X509_get0_uids(const X509 *x, const ASN1_BIT_STRING **piuid,
                     const ASN1_BIT_STRING **psuid);
 #include <openssl/x509_acert.h>
 ASN1_BIT_STRING *X509_ACERT_get0_issuerUID(X509_ACERT *x);
=head1 DESCRIPTION

X509_get0_uids() sets *piuid and *psuid to the issuer and subject unique identifiers of certificate x or NULL if the fields are not present.

X509_ACERT_get0_issuerUID() returns the issuer unique identifier of the attribute certificate x or NULL if the field is not present.

Notes

The issuer and subject unique identifier fields are very rarely encountered in practice outside test cases.

Return values

X509_get0_uids() does not return a value.

X509_ACERT_get0_issuerUID() returns a unique identifier on success or NULL on failure.

Releases

6 releases since Debian 9 (Stretch); the text changed 5 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13
  6. Arch

History

X509_get0_uids() was added in OpenSSL 1.1.0.

X509_ACERT_get0_issuerUID() was added in OpenSSL 3.4.

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