Skip to content

Commit 64eb811

Browse files
committed
Add openssl certs generation command
1 parent 13eea71 commit 64eb811

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

docs/source/asyncio-example.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,13 @@ This example demonstrates some basic asyncio techniques.
1414
:encoding: utf-8
1515

1616

17+
You can use ``cert.crt`` and ``cert.key`` files provided within the repository
18+
or generate your own certificates using `OpenSSL`_:
19+
20+
.. code-block:: console
21+
22+
$ openssl req -x509 -newkey rsa:2048 -keyout cert.key -out cert.crt -days 365 -nodes
23+
24+
1725
.. _asyncio: https://docs.python.org/3/library/asyncio.html
26+
.. _OpenSSL: https://openssl-library.org/source/index.html

docs/source/wsgi-example.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,12 @@ The main advantages of this example are:
2020
:encoding: utf-8
2121

2222

23+
You can use ``cert.crt`` and ``cert.key`` files provided within the repository
24+
or generate your own certificates using `OpenSSL`_:
25+
26+
.. code-block:: console
27+
28+
$ openssl req -x509 -newkey rsa:2048 -keyout cert.key -out cert.crt -days 365 -nodes
29+
2330
.. _asyncio: https://docs.python.org/3/library/asyncio.html
31+
.. _OpenSSL: https://openssl-library.org/source/index.html

0 commit comments

Comments
 (0)