method

public_key=

ruby latest stable - Class: OpenSSL::Netscape::SPKI
public_key=(p1)
public

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.