Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

OpenSSL::Netscape::SPKI#public_key=

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.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1