Skip to content
This repository has been archived by the owner on Jan 23, 2020. It is now read-only.

Initial commit of adding cacert #79

Merged
merged 1 commit into from Mar 13, 2014
Merged

Conversation

pburkholder
Copy link
Contributor

    require "net/https"
    require "uri"

    uri = URI.parse("https://www.google.com/")
    http = Net::HTTP.new(uri.host, uri.port)
    http.use_ssl = true
    request = Net::HTTP::Get.new(uri.request_uri)
    response = http.request(request)

The omnibus install of ruby/irb would fail, but works with this patch. See
also
http://www.pburkholder.com/post/74342141646/fixing-sensuapp-openssl-peer-cert-validation-issues

````
    require "net/https"
    require "uri"

    uri = URI.parse("https://www.google.com/")
    http = Net::HTTP.new(uri.host, uri.port)
    http.use_ssl = true
    request = Net::HTTP::Get.new(uri.request_uri)
    response = http.request(request)
````

The omnibus install of ruby/irb would fail, but works with this patch. See
also
http://www.pburkholder.com/post/74342141646/fixing-sensuapp-openssl-peer-cert-validation-issues
portertech added a commit that referenced this pull request Mar 13, 2014
Initial commit of adding cacert
@portertech portertech merged commit 809eab1 into sensu:master Mar 13, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants