End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
OpenSSL::PKey::PKey#public_to_der
pkey.public_to_der → string
ext/openssl/ossl_pkey.c
View on GitHub ↗
static VALUE
ossl_pkey_public_to_der(VALUE self)
{
return ossl_pkey_export_spki(self, 1);
}
Serializes the public key to DER-encoded X.509 SubjectPublicKeyInfo format.
See also
#private_to_pem
#public_to_pem
#private_to_der
#sign
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0