Skip to content
instance method

OpenSSL::PKey::RSA#to_der

() -> ::String
rsa.to_der => DER-format String

Serializes a private or public key to a DER-encoding.

See to_pem for details.

This method is kept for compatibility. This should only be used when the PKCS #1 RSAPrivateKey format is required.

Consider using public_to_der or private_to_der instead.

See also #sign_pss #to_pem #set_key #to_s also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0