gpgsm
GnuPG's S/MIME (gpgsm) is a tool that provides cryptographic functions for the S/MIME standard, which is used for secure email communication. It is part of the GnuPG (GNU Privacy Guard) suite of tools, which also includes gpg for OpenPGP. Gpgsm is designed to work with X.509 certificates, which are commonly used in public key infrastructure (PKI) systems.
Gpgsm can be used to sign, encrypt, and decrypt email messages, as well as verify the signatures
Gpgsm is a command-line tool, and it can be integrated with email clients such as Thunderbird and
Gpgsm is part of the GnuPG project, which is maintained by the Free Software Foundation (FSF). The