MCPcopy
hub / github.com/tornadoweb/tornado / default_ssl_options

Method default_ssl_options

tornado/testing.py:502–512  ·  tornado/testing.py::AsyncHTTPSTestCase.default_ssl_options
()

Source from the content-addressed store, hash-verified

500
501 @staticmethod
502 def default_ssl_options() -> Dict[str, Any]:
503 class="cm"># Testing keys were generated with:
504 class="cm"># openssl req -new -keyout tornado/test/test.key \
505 class="cm"># -out tornado/test/test.crt \
506 class="cm"># -nodes -days 3650 -x509 \
507 class="cm"># -subj class="st">"/CN=foo.example.com" -addext class="st">"subjectAltName = DNS:foo.example.com"
508 module_dir = os.path.dirname(__file__)
509 return dict(
510 certfile=os.path.join(module_dir, class="st">"test", class="st">"test.crt"),
511 keyfile=os.path.join(module_dir, class="st">"test", class="st">"test.key"),
512 )
513
514 def get_protocol(self) -> str:
515 return class="st">"https"

Callers 2

get_ssl_optionsMethod · 0.80
get_ssl_optionsMethod · 0.80

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected