<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Deepak Singh</title>
    <description>The latest articles on DEV Community by Deepak Singh (@deepaksinghdatacultr).</description>
    <link>https://dev.to/deepaksinghdatacultr</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F874662%2F64cfa91a-eceb-4ec1-9c4c-e762fae94ed4.jpeg</url>
      <title>DEV Community: Deepak Singh</title>
      <link>https://dev.to/deepaksinghdatacultr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/deepaksinghdatacultr"/>
    <language>en</language>
    <item>
      <title>How to Work with Celery in Django using TLS RabbitMQ configuration</title>
      <dc:creator>Deepak Singh</dc:creator>
      <pubDate>Thu, 09 Jun 2022 09:35:59 +0000</pubDate>
      <link>https://dev.to/deepaksinghdatacultr/how-to-work-with-celery-in-django-using-tls-rabbitmq-configuration-4ek6</link>
      <guid>https://dev.to/deepaksinghdatacultr/how-to-work-with-celery-in-django-using-tls-rabbitmq-configuration-4ek6</guid>
      <description>&lt;p&gt;I want to know if celery supports TLS enabled RabbitMQ configuration?&lt;/p&gt;

&lt;p&gt;and if yes then how we can make it work or any workaround possible&lt;/p&gt;

&lt;p&gt;I have tried by using below source in my celery.py file of my Django application&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
import ssl

os.environ.setdefault('DJANGO_SETTINGS_MODULE', '&amp;lt;app_name&amp;gt;.settings')
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

app = Celery('&amp;lt;app_name&amp;gt;')

app.conf.broker_use_ssl = {
  'keyfile': '&amp;lt;path&amp;gt;/client_key.pem',
  'certfile': '&amp;lt;path&amp;gt;/client_certificate.pem',
  'ca_certs': '&amp;lt;path&amp;gt;/ca_certificate.pem',
  'cert_reqs': ssl.CERT_REQUIRED
}
app.conf.broker_url = 'amqps://rabbitmq.example.com:5671/vhostname'

app.conf.broker_login_method = 'EXTERNAL'
app.autodiscover_tasks()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;through the above code I am able to connect to the rabbitMQ server&lt;br&gt;
but background tasks are not processing&lt;/p&gt;

&lt;p&gt;I highly appreciate your help onto this&lt;/p&gt;

</description>
      <category>celery</category>
      <category>django</category>
      <category>rabbitmq</category>
      <category>tls</category>
    </item>
  </channel>
</rss>
