1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Allow setting ca without setting a verify mode

The CA setting is how we can include intermediate keys, but the binder won't set it unless you force client certs.
This commit is contained in:
Pete Keen 2015-10-07 15:00:16 -04:00
parent 264dc0583c
commit 1c4f5aeefc

View file

@ -164,8 +164,9 @@ module Puma
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']