I'm currently investigating whether/how to sign e-mails generated by the smtp_batch output bot.
Currently there are two related variables gpg_key and gpg_pass and the docs specify GPG-signed e-mails are possible.
I see signing is done here:
|
.signature(self.gpg_key, self.gpg_pass) |
And looking at the library used (envelope), I see the library supports also S/MIME. It also looks like the library uses the same function for S/MIME and GPG signatures.
So is it true, one can use the parameters available as of now, simply specify an PEM-encoded S/MIME private key instead of an GPG key and it just works?
Maybe @e3rd as dev/maintainer of the envelope library can help here best.
I'm currently investigating whether/how to sign e-mails generated by the smtp_batch output bot.
Currently there are two related variables
gpg_keyandgpg_passand the docs specify GPG-signed e-mails are possible.I see signing is done here:
intelmq/intelmq/bots/outputs/smtp_batch/output.py
Line 419 in 0342b77
And looking at the library used (envelope), I see the library supports also S/MIME. It also looks like the library uses the same function for S/MIME and GPG signatures.
So is it true, one can use the parameters available as of now, simply specify an PEM-encoded S/MIME private key instead of an GPG key and it just works?
Maybe @e3rd as dev/maintainer of the
envelopelibrary can help here best.