web2py/web2py — pull request #443 by szimszon (2014-05-14 07:20:32+00:00)
Title: Easier S/Mime (X.509) 

S/Mime (X.509) keyfile, sign_certfile, sign_chainfile, crypt_certfile can be strings.
mail.send() function can set signing and encryption settings.