Created
May 23, 2017 18:51
-
-
Save danajp/ba09f47714d5d9f25ab009ab7680647d to your computer and use it in GitHub Desktop.
[net http blog] irb client cert
This file contains hidden or 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
irb(main):001:0> puts OpenSSL::X509::Certificate.new(File.read("/home/dana/.kube/k8s-admin.pem")).to_s | |
-----BEGIN CERTIFICATE----- | |
MHIwWjAgZXZlbiBtb3JlIGZha2UgY2VydGlmaWNhdGUgZGF0YSB0aGF0J3MgYmFz | |
... | |
ZTY0IGVuY29kZWQK | |
-----END CERTIFICATE----- | |
=> nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment