Skip to content

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::EC#check_key

key.check_key => true

Raises an exception if the key is invalid.

See also the man page EVP_PKEY_public_check(3).

See also .new #dh_compute_key .generate #dsa_sign_asn1 also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0