Using Java 7 to Verify OpenSSL Generated S/MIME Digital Signature Files
问题 We have a process that uses OpenSSL to generate S/MIME digital signatures which need to be verified later using Java 7. On one side we use OpenSSL to read in text files and generate a signed digital output which is verified later. We used to have the verification using OpenSSL but now we need Java (note: we cannot count on OpenSSL being available now). We use this to sign: openssl smime -sign -inkey private.key -signer public.key -in ${f} > ${f}.signed and this to verify: openssl smime