SMIME can't be validated by receiver when using newer version of Bouncy Castle
问题 I am using BC to encrypt and sign an SMIME message for use with AS2. The code we have works fine with an absolutely ancient version of bouncy castle, bcmail-1.4:125 . Upgrading to anything newer causes the receiver of the message (not too ancient Cyclone server) to fail to verify the message. (e.g. the earliest v in maven causes this too. These are the versions without API changes (e.g. 1.38). Since we use JDK 1.7 (and 1.8), I've been trying to update this to a newer version of BC, java-mail,