SCT_PRINT(3SSL)

πŸ’– SCT_PRINT(3SSL) β€” the OpenSSL girlies' guide to printing SCTs πŸ’–

okay so bestie, this page is SCT_PRINT(3SSL) from the OpenSSL fam, and it's all about making Signed Certificate Timestamps actually look like something a human can read. no vibes-based guessing, we're printing them. periodt. ✨


🌸 NAME 🌸

SCT_print, SCT_LIST_print, SCT_validation_status_string β€” these lil functions print Signed Certificate Timestamps in a human-readable way. yes queen, readable. we love that for us. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <openssl/ct.h>

void SCT_print(const SCT *sct, BIO *out, int indent, const CTLOG_STORE *logs);
void SCT_LIST_print(const STACK_OF(SCT) *sct_list, BIO *out, int indent,
                    const char *separator, const CTLOG_STORE *logs);
const char *SCT_validation_status_string(const SCT *sct);

like. look at that. three whole functions. the range. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so SCT_print() prints a single Signed Certificate Timestamp (SCT) to a BIO, in a human-readable format. one SCT, one glow-up. ✨

and SCT_LIST_print()? she prints an entire list of SCTs in a similar way. main character energy, obviously. and you can specify a separator to delimit each SCT in the output β€” so like, you get to choose what goes between them. cute, right? πŸŽ€

now, the output can be indented by a specified number of spaces. (yes, we're being aesthetic about it. it's giving formatted.) and if you hand over a CTLOG_STORE, it gets used to print the description of the CT log that issued each SCT β€” but only if that log is actually in the CTLOG_STORE. iykyk.

alternatively? you can just pass NULL as the CTLOG_STORE parameter to disable that whole feature. lowkey the easiest move if you don't care. 🫢

okay and then SCT_validation_status_string() β€” she returns the validation status of an SCT as a human-readable string. but listen. you have to call SCT_validate() or SCT_LIST_validate() beforehand in order to set the validation status of an SCT first. do NOT skip that step, bestie, or there's literally nothing to read. πŸ’€


⭐ RETURN VALUES ⭐

SCT_validation_status_string() returns a NUL-terminated string representing the validation status of an SCT object. that's it. that's the return value. iconic behavior honestly. 🌟


🌈 SEE ALSO 🌈

go read these next, they're all part of the same little universe 🧚


πŸ‘‘ HISTORY πŸ‘‘

these functions were added in OpenSSL 1.1.0. so they've been around. seasoned. established. we stan an origin story. πŸ’œ


Copyright 2016-2018 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>.

fr fr do not skip the license part, that's the boring-but-mandatory bit πŸ™ˆ

and that's the whole page, bestie!! πŸ’– this was OpenSSL 4.0.3, dated 2026-09-29, and it's the SCT_PRINT(3SSL) manual page signing off. slay, stay validated (literally β€” call SCT_validate() first), and go print some timestamps. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from