Skip to content

v2.3.13

Latest

Choose a tag to compare

@bbottema bbottema released this 17 Oct 10:59

This patch repairs S/MIME verification, MIME preservation, and key initialization while retaining the existing public API.

  • Signature verification now rejects CMS containers with no signers and requires every signer to verify successfully.
  • Signing, encryption, and decryption preserve repeated headers and their order, MIME content headers, Unicode bodies, attachments, and SMTP delivery options. Signed SMTP messages keep message-level 8-bit MIME conversion disabled to protect their signatures.
  • Fix RSA-OAEP with SHA-224 and preserve the certificate issuer's original encoded identity in signing key preferences.
  • Recognize both standard and legacy opaque signed-data containers as SIGNED_ENVELOPED, including mixed-case metadata.
  • Initialize PKCS12 stores without requiring an earlier S/MIME call. Retain existing BC providers and application-owned Activation command maps, protect certificate-chain ownership, and decode subject email addresses correctly.
  • Correct the automatic Java module name to org.simplejavamail.utils.mail.smime, making the JAR usable on the module path.

Java 8 support, public classes and method signatures, enum values, runtime dependency versions, and default signing and encryption algorithms are unchanged. Existing application calls remain valid. Applications must still keep the transport Session's mail.smtp.allow8bitmime disabled for signed messages, and apply their own certificate trust, revocation, and sender-identity policy.

Full changes from 2.3.12