Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This starts to address [#2015]. I think we will need to add SSL support to the control cli as well. [#2015]: #2015
- Loading branch information
1 parent
f8938f4
commit fe06bac
Showing
5 changed files
with
63 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
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_DES_CBC_SHA,TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA" | ||
"keystore=#{@keystore}&keystore-pass=pswd&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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters