End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
OpenSSL::X509::Request#sign
sign(p1, p2)
ext/openssl/ossl_x509req.c
View on GitHub ↗
static VALUE
ossl_x509req_sign(VALUE self, VALUE key, VALUE digest)
{
X509_REQ *req;
EVP_PKEY *pkey;
const EVP_MD *md;
GetX509Req(self, req);
pkey = GetPrivPKeyPtr(key); /* NO NEED TO DUP */
md = ossl_evp_get_digestbyname(digest);
if (!X509_REQ_sign(req, pkey, md)) {
ossl_raise(eX509ReqError, NULL);
}
return self;
}
No documentation available
See also
#public_key=
#signature_algorithm
#public_key
#subject
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1