cchandler / certificate_authority

Ruby gem for managing the core functions outlined in RFC-3280 for PKI
https://github.com/cchandler/certificate_authority
194 stars 44 forks source link

Failing specs #6

Closed diogomonica closed 13 years ago

diogomonica commented 13 years ago

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:

cchandler commented 13 years ago

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.

diogomonica commented 13 years ago

True, my bad!