End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
OpenSSL::PKey::DH#set_key
dh.set_key(pub_key, priv_key) → self
ext/openssl/ossl_pkey_dh.c
View on GitHub ↗
Sets pub_key and priv_key for the DH instance. priv_key may be nil.