Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

OpenSSL::PKey::EC#public?

key.public? => true or false

Returns whether this EC instance has a public key. The public key (EC::Point) can be retrieved with EC#public_key.