decode_all

OpenSSL::ASN1.decode_all(der) â Array of ASN1Data
Class Public methods

Similar to decode with the difference that decode expects one distinct value represented in der. decode_all on the contrary decodes a sequence of sequential BER/DER values lined up in der and returns them as an array.

Example

ders = File.binread('asn1data_seq')
asn1_ary = OpenSSL::ASN1.decode_all(ders)
doc_ruby_on_rails
2015-04-24 17:56:19
Comments
Leave a Comment

Please login to continue.