instance method
OpenSSL::X509::Request#public_key=
(::OpenSSL::PKey::PKey public_key) -> ::OpenSSL::PKey::PKey
public_key=(p1)
ext/openssl/ossl_x509req.c
View on GitHub ↗
static VALUE
ossl_x509req_set_public_key(VALUE self, VALUE key)
{
X509_REQ *req;
EVP_PKEY *pkey;
GetX509Req(self, req);
pkey = GetPKeyPtr(key);
ossl_pkey_check_public_key(pkey);
if (!X509_REQ_set_pubkey(req, pkey))
ossl_raise(eX509ReqError, "X509_REQ_set_pubkey");
return key;
}
No documentation available
See also
#public_key
#sign
#attributes=
#signature_algorithm
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0