Skip to content

openssl-master fips: Failure: test_s_generate_parameters(OpenSSL::TestPKey): [RuntimeError] exception expected, not #<OpenSSL::PKey::PKeyError: EVP_PKEY_paramgen> #785

@junaruga

Description

@junaruga

I am seeing the following error on the latest master branch a664af8 in my forked repository. This error only happens in the "openssl-master with fips provider" case in the CI. The error happened with the OpenSSL at the openssl/openssl@fd39d1c, and also at an older commit openssl/openssl@f98e49b (CI log)

https://github.com/junaruga/ruby-openssl/actions/runs/10302695081/job/28516950443#step:11:113

 2) Failure: test_s_generate_parameters(OpenSSL::TestPKey): [RuntimeError] exception expected, not #<OpenSSL::PKey::PKeyError: EVP_PKEY_paramgen>.
/home/runner/work/ruby-openssl/ruby-openssl/vendor/bundle/ruby/3.0.0/gems/test-unit-ruby-core-1.0.6/lib/core_assertions.rb:454:in `block in assert_raise'
/home/runner/work/ruby-openssl/ruby-openssl/vendor/bundle/ruby/3.0.0/gems/test-unit-ruby-core-1.0.6/lib/core_assertions.rb:540:in `assert'
/home/runner/work/ruby-openssl/ruby-openssl/vendor/bundle/ruby/3.0.0/gems/test-unit-ruby-core-1.0.6/lib/core_assertions.rb:453:in `rescue in assert_raise'
/home/runner/work/ruby-openssl/ruby-openssl/vendor/bundle/ruby/3.0.0/gems/test-unit-ruby-core-1.0.6/lib/core_assertions.rb:441:in `assert_raise'
/home/runner/work/ruby-openssl/ruby-openssl/test/openssl/test_pkey.rb:49:in `test_s_generate_parameters'
     46:       pend "unstable test on OpenSSL 3.0.[0-5]"
     47:     end
     48:     cb_called = []
  => 49:     assert_raise(RuntimeError) {
     50:       OpenSSL::PKey.generate_parameters("DSA") { |*args|
     51:         cb_called << args
     52:         raise "exit!" if cb_called.size == 3

The CI log succeeded in the case is with OpenSSL at openssl/openssl@f98e49b openssl/openssl@20bf3fe.
https://github.com/ruby/openssl/actions/runs/10261548837/job/28389492262#step:4:41

I am not sure where this issue comes from. It may be from OpenSSL or a Ruby library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions