mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
13 lines
563 B
Ruby
13 lines
563 B
Ruby
module SSLHelper
|
|
def ssl_query
|
|
@ssl_query ||= if Puma.jruby?
|
|
@keystore = File.expand_path "../../../examples/puma/keystore.jks", __FILE__
|
|
@ssl_cipher_list = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
|
|
"keystore=#{@keystore}&keystore-pass=jruby_puma&ssl_cipher_list=#{@ssl_cipher_list}"
|
|
else
|
|
@cert = File.expand_path "../../../examples/puma/cert_puma.pem", __FILE__
|
|
@key = File.expand_path "../../../examples/puma/puma_keypair.pem", __FILE__
|
|
"key=#{@key}&cert=#{@cert}"
|
|
end
|
|
end
|
|
end
|