CMS_SIGN_RECEIPT(3ossl)

πŸ“¦
version 15.1 Β· 3 versions
, in freebsd 15.1

🧾 NAME 🧾

CMS_sign_receipt β€” create a CMS signed receipt. Bestie, this is the CMS_SIGN_RECEIPT(3ossl) page from OpenSSL, and we're making signed receipts. No cap. πŸ’…

✨ SYNOPSIS ✨

#include <openssl/cms.h>

CMS_ContentInfo *CMS_sign_receipt(CMS_SignerInfo *si, X509 *signcert,
                                  EVP_PKEY *pkey, STACK_OF(X509) *certs,
                                  unsigned int flags);

πŸ› οΈ DESCRIPTION πŸ› οΈ

Okay so CMS_sign_receipt() creates and returns a CMS signed receipt structure. It's giving "receipt, but make it signed" and honestly? Iconic. πŸ’–

  • si β€” the CMS_SignerInfo structure containing the signed receipt request. This is literally the main character of the request, iykyk.
  • signcert β€” the certificate to sign with. Slay.
  • pkey β€” the corresponding private key. Guard it with your life, bestie. πŸ”
  • certs β€” an optional additional set of certificates to include in the CMS structure (for example any intermediate CAs in the chain). Lowkey important if you've got a whole chain situation going on.
  • flags β€” an optional set of flags. Cute little toggles, but read the notes first, fr fr.

⚠️ NOTES ⚠️

This function behaves in a similar way to CMS_sign(), except these flag values are not supported: CMS_DETACHED, CMS_BINARY, CMS_NOATTR, CMS_TEXT, and CMS_STREAM. The way that they do not make sense in the context of signed receipts β€” periodt. So don't try to force them, bestie; it's not the vibe. πŸ™ˆ

πŸ” RETURN VALUES πŸ”

CMS_sign_receipt() returns either a valid CMS_ContentInfo structure or NULL if an error occurred. If you get NULL, it's giving "something went wrong," and you can obtain the error from ERR_get_error(3). Go check it, ngl. 😭

πŸ‘€ SEE ALSO πŸ‘€

These are your linked-up besties for this page. Obsessed with a cross-reference. 🫢

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


πŸŽ€ That's the whole CMS_SIGN_RECEIPT(3ossl) page from OpenSSL 3.5.6, dated 2026-04-07. K bye bestie, go sign those receipts and slay! πŸ’–βœ¨
πŸ“¦ where this page comes from