Skip to content

Instantly share code, notes, and snippets.

@ehowe
Created May 31, 2013 13:14
Show Gist options
  • Save ehowe/5684899 to your computer and use it in GitHub Desktop.
Save ehowe/5684899 to your computer and use it in GitHub Desktop.
require 'openssl'
cert = OpenSSL::X509::Certificate.new(File.read("cert.pem"))
extension = OpenSSL::X509::Extension.new cert.extensions.first
extension.value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment