Make S/MIME algorithms configurable (signature algorithm for signing, key encapsulation and cipher algorithms for encryption)
asariev opened this issue · comments
asariev commented
Benny Bottema commented
I think it was about time this was configurable. I'm almost done with it.
Benny Bottema commented
Feature released in 8.7.1.
Please refer to the documentation on signing and encrypting with S/MIME. You can now set any signature algorithm when signing and any key encapsulation algorithm and cipher algorithm when encrypting. Enjoy!
Benny Bottema commented
To give a specific example of your request:
Email emailToBeEncrypted = currentEmailBuilder
.(..)
.encryptWithSmime(SmimeEncryptConfig.builder()
.x509Certificate(yourCertificate)
.cipherAlgorithm("AES256_CBC")
.build())
.buildEmail();
asariev commented
Love it! Let me test it. I have several projects that require different
types of cipher algorithms. It makes my life easier.
Thank you!
…On Thu, Mar 21, 2024 at 2:08 PM Benny Bottema ***@***.***> wrote:
To give a specific example of your request:
Email emailToBeEncrypted = currentEmailBuilder
.(..)
.encryptWithSmime(SmimeEncryptConfig.builder()
.x509Certificate(yourCertificate)
.cipherAlgorithm("AES256_CBC")
.build())
.buildEmail();
—
Reply to this email directly, view it on GitHub
<#498 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHMGUTWQH4B2WNLXHI6XF33YZMV2RAVCNFSM6AAAAABE5CNMOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJTGM3TCNRYHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Best regards,
Aibek Sariev