Skip to content
instance method

OpenSSL::ASN1::ASN1Data#to_der

() -> ::String
asn1.to_der => DER-encoded String

Encodes this ASN1Data into a DER-encoded String value. The result is DER-encoded except for the possibility of indefinite length forms. Indefinite length forms are not allowed in strict DER, so strictly speaking the result of such an encoding would be a BER-encoding.

See also .new also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0