mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Merge pull request #794 from peterkeen/patch-1
Allow setting CA certificates without setting a verify mode
This commit is contained in:
commit
cba88bbc80
1 changed files with 2 additions and 1 deletions
|
@ -164,8 +164,9 @@ module Puma
|
||||||
unless params['ca']
|
unless params['ca']
|
||||||
@events.error "Please specify the SSL ca via 'ca='"
|
@events.error "Please specify the SSL ca via 'ca='"
|
||||||
end
|
end
|
||||||
ctx.ca = params['ca']
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
ctx.ca = params['ca']
|
||||||
|
|
||||||
if params['verify_mode']
|
if params['verify_mode']
|
||||||
ctx.verify_mode = case params['verify_mode']
|
ctx.verify_mode = case params['verify_mode']
|
||||||
|
|
Loading…
Add table
Reference in a new issue