Skip to content

Commit

Permalink
Merge pull request #33 from erubboli/master
Browse files Browse the repository at this point in the history
fix client validation when the CA file contain a certificate chain
  • Loading branch information
prdn authored Jun 29, 2017
2 parents 8e46cbb + 60c742c commit 4d628b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/grenache/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def start_http_service(port, &block)
verify_peer: true
}

server.backend.ca_cert = File.read config.ca
server.backend.ca_cert = config.ca
end
server.start
}
Expand Down
3 changes: 1 addition & 2 deletions lib/grenache/http/http_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ def ssl_verify_peer cert
private
def store
@store ||= OpenSSL::X509::Store.new.tap do |store|
root = OpenSSL::X509::Certificate.new backend.ca_cert
store.add_cert root
store.add_file backend.ca_cert
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/grenache/http/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Grenache
module HTTP
VERSION = "0.2.13"
VERSION = "0.2.14"
end
end

0 comments on commit 4d628b9

Please sign in to comment.