OpenSSL 3.0 different behaviour on smaller DH groups?

Simon Chopin simon.chopin at
Tue Apr 5 17:05:37 UTC 2022


I'm working on migrating the Ruby net-ssh package to OpenSSL 3.0 as part
of our larger transition in Ubuntu, but there's an issue that I can't
figure out.

This test suite fails several times with a failed call to
EVP_PKEY_derive_set_peer, without much more details:

However, the *exact same* test suite works, with the only difference
being that the failing suite uses the DH group 14, which is 2048bits,
whereas the one that passes uses the group 1, which the Internet tells
me is 768bits.

I'm working on trying to come up with a pure-C reproducer, but I'm
sending this in the hopes that someone out there has a sudden epiphany
and knows what is causing this?

For the curious out there, we're tracking this work at


Simon Chopin
Foundations Team                               	             Ubuntu MOTU
simon.chopin at                            schopin at

More information about the openssl-users mailing list