Sympa::Tools::SMIME(3Sympa)

πŸŽ€ NAME πŸŽ€

Sympa::Tools::SMIME β€” the toolbox for S/MIME messages and X.509 certificates, from the sympa 6.2.80 manual page (section 3Sympa, bestie, in case you were wondering).


✨ DESCRIPTION ✨

Okay so this module is giving "I handle your certs and your signed mail" energy and honestly? Iconic.

πŸ’… Functions

πŸ”‘ find_keys ( $that, $operation )

Finds the right S/MIME keys/certs for $operation of $that. Like, it literally goes shopping for the correct key situation for you.

$operation can be:

  • 'sign' β€” hands you back the preferred signing key/cert. main character of signatures fr.
  • 'decrypt' β€” hands you back a list of possible decryption keys/certs. choices!! we love options 🫢
  • 'encrypt' β€” hands you back the preferred encryption key/cert.

Returns "($certs, $keys)".

Heads up bestie, the shapes are different depending on the vibe: for 'sign' and 'encrypt', these are strings containing the absolute filename. For 'decrypt', these are arrayrefs containing absolute filenames. Don't mix them up or it's giving πŸ’€.

πŸ“œ parse_cert ( "text"|"file" => $content )

Parses an X.509 certificate. She's reading the whole thing, no skimming. πŸ‘‘

Options:

  • "file" => $filename
  • "text" => $text β€” specifies PEM-encoded certificate.

Returns a hashref containing these items:

  • {email} β€” hashref with email addresses from cert as keys.
  • {emails} β€” arrayref with email addresses from cert. This was added on Sympa 6.2.67b. ✨ new-ish drop alert ✨
  • {subject} β€” distinguished name.
  • {purpose} β€” hashref containing:
    • {enc} β€” true if v3 purpose is encryption.
    • {sign} β€” true if v3 purpose is signing.

TBD.

If parsing failed, returns undef. 😭 she said nope, nothing, void, silence.


🌸 HISTORY 🌸

TBD.


And that's the whole page, bestie! This was sympa 6.2.80, dated 2026-10-19, and the manual page is Sympa::Tools::SMIME(3Sympa). Go forth and certify your little heart out! πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from