Open robbat2 opened 6 years ago
So this seems to be a shortcoming of OpenSSL. http://ruby-doc.org/stdlib-2.4.2/libdoc/openssl/rdoc/OpenSSL/PKCS7.html doesn't mention it at all, but digging deeper down, I found this: https://mta.openssl.org/pipermail/openssl-dev/2016-May/007241.html
None of the OpenSSL CMS utility/api is exposed via Ruby :-(
@robbat2 That's unfortunate. Is it possible that the use of the newly released ruby 2.5 provides better hooks into openssl??
I checked, the OpenSSL gem doesn't support any of the CMS functions. On deeper inspection, I'm wondering if the SMIME (PCKS#7) & CMS structures are overkill for what we're doing. I'm going to see about exploring that as different encryption method.
I'm trying to use elliptic curve certs rather than RSA, and running into weirdness.
If the key is generated as RSA instead, everything is fine: