mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Add docs for key_file and cert_file arguments for HTTPSConnection. Copied from socket.ssl docs.
This commit is contained in:
parent
be67d87e4d
commit
235d1efe12
1 changed files with 7 additions and 1 deletions
|
@ -52,9 +52,15 @@ the server at the same host and port:
|
||||||
\versionadded{2.0}
|
\versionadded{2.0}
|
||||||
\end{classdesc}
|
\end{classdesc}
|
||||||
|
|
||||||
\begin{classdesc}{HTTPSConnection}{host\optional{, port}}
|
\begin{classdesc}{HTTPSConnection}{host\optional{, port, key_file, cert_file}}
|
||||||
A subclass of \class{HTTPConnection} that uses SSL for communication with
|
A subclass of \class{HTTPConnection} that uses SSL for communication with
|
||||||
secure servers. Default port is \code{443}.
|
secure servers. Default port is \code{443}.
|
||||||
|
\var{key_file} is
|
||||||
|
the name of a PEM formatted file that contains your private
|
||||||
|
key. \var{cert_file} is a PEM formatted certificate chain file.
|
||||||
|
|
||||||
|
\warning{This does not do any certificate verification!}
|
||||||
|
|
||||||
\versionadded{2.0}
|
\versionadded{2.0}
|
||||||
\end{classdesc}
|
\end{classdesc}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue