Created
September 7, 2018 22:40
-
-
Save bdwyertech/01050bde758cbdc3dd9a2eb10c0888a7 to your computer and use it in GitHub Desktop.
Ruby'isms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# => Find Certificate CN | |
cn = OpenSSL::X509::Certificate.new(::File.read('kc.crt')).subject.to_a.find { |c| c[0] == 'CN' }[1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment