Skip to content

Commit

Permalink
Add support for specifying SSL Ciphers (#69)
Browse files Browse the repository at this point in the history
* Default to using secure TLS ciphers
* Add support for specifying SSL Ciphers
  • Loading branch information
gaby authored Jun 9, 2023
1 parent 09c3561 commit d923532
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gdash/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ def get_args():
parser.add_argument(
"--ssl-ca", default=None, help=("Path to SSL CA Certificate used by Gdash")
)
parser.add_argument(
"--ssl-ciphers", default=None, help=("List of SSL Ciphers to allow")
)

return parser.parse_args()

Expand Down Expand Up @@ -204,6 +207,9 @@ def main():
if ARGS.ssl_ca:
cherrypy_cfg["server.ssl_certificate_chain"] = ARGS.ssl_ca

if ARGS.ssl_ciphers:
cherrypy_cfg["server.ssl_ciphers"] = ARGS.ssl_ciphers

if ARGS.ssl_cert and ARGS.ssl_key:
cherrypy_cfg["server.ssl_module"] = "builtin"

Expand Down

0 comments on commit d923532

Please sign in to comment.