Skip to content

Commit

Permalink
Merge pull request #794 from peterkeen/patch-1
Browse files Browse the repository at this point in the history
Allow setting CA certificates without setting a verify mode
  • Loading branch information
evanphx committed Nov 6, 2015
2 parents 718c401 + 1c4f5ae commit cba88bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/puma/binder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ def parse(binds, logger)
unless params['ca']
@events.error "Please specify the SSL ca via 'ca='"
end
ctx.ca = params['ca']
end

ctx.ca = params['ca']

if params['verify_mode']
ctx.verify_mode = case params['verify_mode']
Expand Down

0 comments on commit cba88bb

Please sign in to comment.