-
-
Save anonymous/58e63a1fafdda3761106b41569a988d8 to your computer and use it in GitHub Desktop.
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
# Pastebin JZkBjUFr | |
uri = URI.parse("https://secure.com/") | |
pem = File.read("/path/to/my.pem") | |
http = Net::HTTP.new(uri.host, uri.port) | |
http.use_ssl = true | |
http.cert = OpenSSL::X509::Certificate.new(pem) | |
http.key = OpenSSL::PKey::RSA.new(pem) | |
http.verify_mode = OpenSSL::SSL::VERIFY_NONE | |
request = Net::HTTP::Get.new(uri.request_uri) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got it: