Sha256: 632482a6192651261bdda2a3a77fe602e0491651a6068ab45557481ed3ed6afb
Contents?: true
Size: 451 Bytes
Versions: 3
Compression:
Stored size: 451 Bytes
Contents
module Thin class Connection < EventMachine::Connection def ssl_verify_peer cert client = OpenSSL::X509::Certificate.new cert store.verify client end private def store @store ||= OpenSSL::X509::Store.new.tap do |store| root = OpenSSL::X509::Certificate.new ca_cert store.add_cert root end end def ca_cert @ca_cert ||= File.read Grenache::Http.config.ca end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
grenache-ruby-http-0.2.9 | lib/grenache/http/http_server.rb |
grenache-ruby-http-0.2.8 | lib/grenache/http/http_server.rb |
grenache-ruby-http-0.2.7 | lib/grenache/http/http_server.rb |