Skip to content

Commit

Permalink
Add openssl certs generation command
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwant committed Aug 14, 2024
1 parent 13eea71 commit 64eb811
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/source/asyncio-example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,13 @@ This example demonstrates some basic asyncio techniques.
:encoding: utf-8


You can use ``cert.crt`` and ``cert.key`` files provided within the repository
or generate your own certificates using `OpenSSL`_:

.. code-block:: console
$ openssl req -x509 -newkey rsa:2048 -keyout cert.key -out cert.crt -days 365 -nodes
.. _asyncio: https://docs.python.org/3/library/asyncio.html
.. _OpenSSL: https://openssl-library.org/source/index.html
8 changes: 8 additions & 0 deletions docs/source/wsgi-example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@ The main advantages of this example are:
:encoding: utf-8


You can use ``cert.crt`` and ``cert.key`` files provided within the repository
or generate your own certificates using `OpenSSL`_:

.. code-block:: console
$ openssl req -x509 -newkey rsa:2048 -keyout cert.key -out cert.crt -days 365 -nodes
.. _asyncio: https://docs.python.org/3/library/asyncio.html
.. _OpenSSL: https://openssl-library.org/source/index.html

0 comments on commit 64eb811

Please sign in to comment.