Skip to content
instance method

OpenSSL::PKey::EC#to_der

() -> ::String
key.to_der => 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 SEC 1/RFC 5915 ECPrivateKey format is required.

Consider using public_to_der or private_to_der instead.

See also #public_key? #to_pem #public_key= also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0