Skip to content

Commit 3daf484

Browse files
committed
Update doc
1 parent 3ca55d1 commit 3daf484

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Doc/library/http.server.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -584,30 +584,31 @@ The following options are accepted:
584584

585585
.. option:: --tls-cert
586586

587-
The server can also support TLS encryption. The option ``--tls-cert`` allow
588-
specifying a TLS certificate chain for HTTPS connections. For example,
589-
the following command runs the server with TLS enabled::
587+
Specifies a TLS certificate chain for HTTPS connections::
590588

591589
python -m http.server --tls-cert fullchain.pem
592590

593591
.. versionadded:: next
594592

595593
.. option:: --tls-key
596594

597-
Specifies private key for HTTPS connections.
595+
Specifies a private key file for HTTPS connections.
596+
597+
This option requires ``--tls-cert`` to be specified.
598598

599599
.. versionadded:: next
600600

601601
.. option:: --tls-password-file
602602

603-
Use the ``--tls-password-file`` option if private keys are
604-
password-protected::
603+
Specifies the password file for password-protected private keys::
605604

606605
python -m http.server \
607606
--tls-cert cert.pem \
608607
--tls-key key.pem \
609608
--tls-password-file password.txt
610609

610+
This option requires `--tls-cert`` to be specified.
611+
611612
.. versionadded:: next
612613

613614

0 commit comments

Comments
 (0)