Skip to content
instance method

OpenSSL::Netscape::SPKI#sign

(::OpenSSL::PKey::PKey key, ::OpenSSL::Digest digest) -> self
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 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0