Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

OpenSSL::Netscape::SPKI#public_key=

(::OpenSSL::PKey::PKey) -> ::OpenSSL::PKey::PKey
spki.public_key = pub => pkey

Parameters

  • pub - the public key to be set for this instance

Sets the public key to be associated with the SPKI, an instance of OpenSSL::PKey. This should be the public key corresponding to the private key used for signing the SPKI.

See also #public_key #sign #challenge= #to_der also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0