Skip to content

Commit

Permalink
Merge pull request #1312 from DavidWittman/patch-1
Browse files Browse the repository at this point in the history
Fix TLS server authentication example
  • Loading branch information
michaelklishin committed Mar 13, 2021
2 parents 6d9896c + 6c470ad commit a715c9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples/tls_server_authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This examples demonstrates a TLS session with RabbitMQ using server authenticati

It was tested against RabbitMQ 3.6.10, using Python 3.6.1 and pre-release Pika `0.11.0`

Note the use of `ssl_version=ssl.PROTOCOL_TLSv1`. The recent versions of RabbitMQ disable older versions of
Note the use of `ssl.PROTOCOL_TLSv1_2`. The recent versions of RabbitMQ disable older versions of
SSL due to security vulnerabilities.

See https://www.rabbitmq.com/ssl.html for certificate creation and rabbitmq SSL configuration instructions.
Expand All @@ -18,7 +18,7 @@ tls_example.py::

logging.basicConfig(level=logging.INFO)

context = ssl.SSLContext(ssl.PROTOCOL_TLSv2)
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
context.verify_mode = ssl.CERT_REQUIRED
context.load_verify_locations('/Users/me/tls-gen/basic/testca/cacert.pem')

Expand Down

0 comments on commit a715c9d

Please sign in to comment.