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::Netscape::SPKI#sign

spki.sign(key, digest) => spki

Parameters

  • key - the private key to be used for signing this instance

  • digest - the digest to be used for signing this instance

To sign an SPKI, the private key corresponding to the public key set for this instance should be used, in addition to a digest algorithm in the form of an OpenSSL::Digest. The private key should be an instance of OpenSSL::PKey.

See also #public_key= #to_der #public_key #to_pem also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0