postageapp / openssl_pkcs8

OpenSSL::PKey::RSA extension to export in PKCS8 format (Obsolete)
MIT License
6 stars 6 forks source link

Updated based on openssl 1.1.0 gem to fix "wrong argument type OpenSS… #4

Open jimflood opened 9 years ago

jimflood commented 9 years ago

…L::PKey::RSA (expected Data)"

On ruby 2.2.1p85, to_pem_pkcs8 hits this problem: TypeError: wrong argument type OpenSSL::PKey::RSA (expected Data)

I fixed the problem, which was with Data_Get_Struct, by updating the source based on the current openssl gem version 1.1.0.

jimflood commented 9 years ago

$ bundle exec rake # runs fine when the gem is installed. You'll have to fix the environment running the integration tests.