With a fresh_clone of certificate_authority, I run the specs and get:
1)
OpenSSL::Engine::EngineError in 'CertificateAuthority::MemoryKeyMaterial in hardware should return a Pkey ref if the private key is requested'
dso not found
/private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:55:in ctrl_cmd' /private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:55:ininitialize_engine'
/private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:51:in by_id' /private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:51:ininitialize_engine'
/private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:32:in `private_key'
/private/tmp/certificate_authority/spec/units/key_material_spec.rb:59:
2)
OpenSSL::Engine::EngineError in 'CertificateAuthority::MemoryKeyMaterial in hardware should return a Pkey ref if the private key is requested'
dso not found
/private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:55:in ctrl_cmd' /private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:55:ininitialize_engine'
/private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:51:in by_id' /private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:51:ininitialize_engine'
/private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:37:in `public_key'
/private/tmp/certificate_authority/spec/units/key_material_spec.rb:63:
How are you running the specs? Doing "bundle exec rake" by itself should run the specs without including the pkcs11 tests. If you don't have an HSM connected those will all fail.
With a fresh_clone of certificate_authority, I run the specs and get:
1) OpenSSL::Engine::EngineError in 'CertificateAuthority::MemoryKeyMaterial in hardware should return a Pkey ref if the private key is requested' dso not found /private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:55:in
ctrl_cmd' /private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:55:in
initialize_engine' /private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:51:inby_id' /private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:51:in
initialize_engine' /private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:32:in `private_key' /private/tmp/certificate_authority/spec/units/key_material_spec.rb:59:2) OpenSSL::Engine::EngineError in 'CertificateAuthority::MemoryKeyMaterial in hardware should return a Pkey ref if the private key is requested' dso not found /private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:55:in
ctrl_cmd' /private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:55:in
initialize_engine' /private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:51:inby_id' /private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:51:in
initialize_engine' /private/tmp/certificate_authority/lib/certificate_authority/pkcs11_key_material.rb:37:in `public_key' /private/tmp/certificate_authority/spec/units/key_material_spec.rb:63: