I want to move from pika to aio-pika. So, my project uses ssl and I specify ssl-related settings in pika.SSlOptions class. Firstly I create ssl.SSLContext instance and specify CA, certfile, keyfile and password for certificate. Then I use SSLContext variable to create pika.SSLOptions instance, that takes 2 parameters: SSLContext instance and server_hostname. After that I use created SSLOptions instance to create ConnectionParameters and connect to rabbitmq. I have 2 questions:
- why aio_pika.connect_robust takes two ssl-related arguments:
ssl_optionsandssl_context, but pika.ConnectionParameters takes onlyssl_options - how to specify server hostname using aio-pika
I looked through the source code of aio-pika, looked a lot in google