Skip to content

Commit d923532

Browse files
authored
Add support for specifying SSL Ciphers (#69)
* Default to using secure TLS ciphers * Add support for specifying SSL Ciphers
1 parent 09c3561 commit d923532

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gdash/__main__.py

+6
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ def get_args():
173173
parser.add_argument(
174174
"--ssl-ca", default=None, help=("Path to SSL CA Certificate used by Gdash")
175175
)
176+
parser.add_argument(
177+
"--ssl-ciphers", default=None, help=("List of SSL Ciphers to allow")
178+
)
176179

177180
return parser.parse_args()
178181

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

210+
if ARGS.ssl_ciphers:
211+
cherrypy_cfg["server.ssl_ciphers"] = ARGS.ssl_ciphers
212+
207213
if ARGS.ssl_cert and ARGS.ssl_key:
208214
cherrypy_cfg["server.ssl_module"] = "builtin"
209215

0 commit comments

Comments
 (0)