File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments