OSSL_ESS_CHECK_SIGNING_CERTS(3SSL)
π OSSL_ESS_CHECK_SIGNING_CERTS(3SSL) π
bestie. sit down. we're doing OpenSSL's Enhanced Security Services (ESS) today and honestly? it's giving β¨signature-freshnessβ¨
this is the OpenSSL family of manual pages, and this particular icon is your one-stop shop for OSSL_ESS_signing_cert_new_init, OSSL_ESS_signing_cert_v2_new_init, OSSL_ESS_check_signing_certs, and OSSL_ESS_check_signing_certs_ex β aka the Enhanced Security Services (ESS) functions. yes that's a lot of underscores. no we don't talk about it. π
πΈ SYNOPSIS πΈ
like, here's the shape of it, no cap:
#include <openssl/ess.h>
ESS_SIGNING_CERT *OSSL_ESS_signing_cert_new_init(const X509 *signcert,
const STACK_OF(X509) *certs,
int set_issuer_serial);
ESS_SIGNING_CERT_V2 *OSSL_ESS_signing_cert_v2_new_init(const EVP_MD *hash_alg,
const X509 *signcert,
const
STACK_OF(X509) *certs,
int set_issuer_serial);
int OSSL_ESS_check_signing_certs(const ESS_SIGNING_CERT *ss,
const ESS_SIGNING_CERT_V2 *ssv2,
const STACK_OF(X509) *chain,
int require_signing_cert);
int OSSL_ESS_check_signing_certs_ex(const ESS_SIGNING_CERT *ss,
const ESS_SIGNING_CERT_V2 *ssv2,
const STACK_OF(X509) *chain,
OSSL_LIB_CTX *libctx,
const char *propq,
int require_signing_cert);
π¦ DESCRIPTION π¦
OSSL_ESS_signing_cert_new_init() is the little builder bestie. it generates a brand new ESS_SIGNING_CERT structure that references the given signcert β plus any extra certs you hand it β using their SHA-1 fingerprints. and if set_issuer_serial is nonzero, then the issuer and serial number of signcert get tucked into the ESS_CERT_ID as the issuerSerial field too. oh and for all members of certs, the issuerSerial field is always included. periodt. π
OSSL_ESS_signing_cert_v2_new_init() is literally the same vibe as OSSL_ESS_signing_cert_new_init(), except it uses the hash_alg you pass in and generates an ESS_SIGNING_CERT_V2 structure with ESS_CERT_ID_V2 elements. glow-up version, same energy.
OSSL_ESS_check_signing_certs() does the vibe check: it checks whether the validation chain chain actually contains the certificates required by the identifiers given in ss and/or ssv2. housekeeping to know:
- If
require_signing_certis nonzero, thenssorssv2must not be NULL. no exceptions. - If both
ssandssv2are not NULL, they get evaluated independently. - The list of certificate identifiers in
ssis of typeESS_CERT_ID, while the list inssv2is of typeESS_CERT_ID_V2. - As far as these lists are present, they must be nonempty.
- The certificate identified by their first entry must be the first element of
chain, i.e. the signer certificate. - Any further certificates referenced in the list must also be found in
chain. - The matching is done using the given certificate hash algorithm and value.
- On top of the checks required by RFCs 2624 and 5035: if the
issuerSerialfield is included in an ESSCertID or ESSCertIDv2, it must match the certificate issuer and serial number attributes.
OSSL_ESS_check_signing_certs_ex() functions identically to OSSL_ESS_check_signing_certs(), but it hands you extra parameters β libctx and propq β for users who wish to specify a nondefault library context and property query, for when the function fetches digests to validate the certs. it's the deluxe edition π«Ά
π§ NOTES π§
ESS has been defined in RFC 2634, which got updated in RFC 5035 (ESS version 2) to support hash algorithms other than SHA-1. iconic evolution honestly.
this is used for TSP (RFC 3161) and CAdES-BES (informational RFC 5126). iykyk.
β RETURN VALUES β
OSSL_ESS_signing_cert_new_init()andOSSL_ESS_signing_cert_v2_new_init()return a pointer to the new structure β orNULLon malloc failure πOSSL_ESS_check_signing_certs()andOSSL_ESS_check_signing_certs_ex()return:1on success π0if a required certificate cannot be found-1on other error π
π SEE ALSO π
π HISTORY π
OSSL_ESS_signing_cert_new_init(),OSSL_ESS_signing_cert_v2_new_init(), andOSSL_ESS_check_signing_certs()were added in OpenSSL 3.0.OSSL_ESS_check_signing_certs_ex()was added in OpenSSL 4.0. new girl on the block π
π COPYRIGHT π
Copyright 2021-2026 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
okay that's the whole page bestie, you ate that π go forth and verify some signing certs, mwah π
this has been the OpenSSL 4.0.3 edition of the manual, dated 2026-09-29 β and yes, OSSL_ESS_CHECK_SIGNING_CERTS(3SSL), that's a wrap πβ¨
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms