_ssl._SSLContext - pydoc - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


Help on class _SSLContext in _ssl:

_ssl._SSLContext = class _SSLContext(builtins.object)
 |  Methods defined here:
 |
 |  cert_store_stats(self, /)
 |      Returns quantities of loaded X.509 certificates.
 |
 |      X.509 certificates with a CA extension and certificate revocation lists
 |      inside the context's cert store.
 |
 |      NOTE: Certificates in a capath directory aren't loaded unless they have
 |      been used at least once.
 |
 |  get_ca_certs(self, /, binary_form=False)
 |      Returns a list of dicts with information of loaded CA certs.
 |
 |      If the optional argument is True, returns a DER-encoded copy of the CA
 |      certificate.
 |
 |      NOTE: Certificates in a capath directory aren't loaded unless they have
 |      been used at least once.
 |
 |  get_ciphers(self, /)
 |
 |  load_cert_chain(self, /, certfile, keyfile=None, password=None)
 |
 |  load_dh_params(self, path, /)
 |
 |  load_verify_locations(self, /, cafile=None, capath=None, cadata=None)
 |
 |  session_stats(self, /)
 |
 |  set_ciphers(self, cipherlist, /)
 |
 |  set_default_verify_paths(self, /)
 |
 |  set_ecdh_curve(self, name, /)
 |
 |  ----------------------------------------------------------------------
 |  Static methods defined here:
 |
 |  __new__(*args, **kwargs) from builtins.type
 |      Create and return a new object.  See help(type) for accurate signature.
 |
 |  ----------------------------------------------------------------------
 |  Data descriptors defined here:
 |
 |  check_hostname
 |
 |  keylog_filename
 |
 |  maximum_version
 |
 |  minimum_version
 |
 |  num_tickets
 |      Control the number of TLSv1.3 session tickets
 |
 |  options
 |
 |  post_handshake_auth
 |
 |  protocol
 |
 |  security_level
 |      The current security level
 |
 |  sni_callback
 |      Set a callback that will be called when a server name is provided by the SSL/TLS client in the SNI extension.
 |
 |      If the argument is None then the callback is disabled. The method is called
 |      with the SSLSocket, the server name as a string, and the SSLContext object.
 |      See RFC 6066 for details of the SNI extension.
 |
 |  verify_flags
 |
 |  verify_mode


Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 07:18 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!