Skip to content

Instantly share code, notes, and snippets.

@Hakon
Created June 12, 2012 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hakon/2916788 to your computer and use it in GitHub Desktop.
Save Hakon/2916788 to your computer and use it in GitHub Desktop.
require 'openssl'
blk = "0)\x02\x01\x01`$\x02\x01\x03\x04\x17cn=admin,dc=test,dc=com\x80\x06secret"
asn1 = OpenSSL::ASN1::decode(blk)
protocolOp = asn1.value[1]
puts protocolOp.inspect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment