decode

OpenSSL::ASN1.decode(der) รข ASN1Data
Class Public methods

Decodes a BER- or DER-encoded value and creates an ASN1Data instance. der may be a String or any object that features a #to_der method transforming it into a BER-/DER-encoded String.

Example

der = File.binread('asn1data')
asn1 = OpenSSL::ASN1.decode(der)
doc_ruby_on_rails
2015-04-24 17:50:21
Comments
Leave a Comment

Please login to continue.