Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support self signed certificates #1493

Open
vogt31337 opened this issue Feb 20, 2022 · 3 comments
Open

support self signed certificates #1493

vogt31337 opened this issue Feb 20, 2022 · 3 comments

Comments

@vogt31337
Copy link

Hi,

I'm using pyamqp maybe this is also valid / interesting for other transport layers.
Since version 4.6.8 kombu doesn't accept self signed certificates (at least for amqps connections), which is problematic at least for me...
If I understood issues #1149 and #1151 correctly there is some way to configure the ssl behaviour.
Maybe you could update the documentation to explain how to enable self signed certificates.

BR

@open-collective-bot
Copy link

Hey @vogt31337 👋,
Thank you for opening an issue. We will get back to you as soon as we can.
Also, check out our Open Collective and consider backing us - every little helps!

We also offer priority support for our sponsors.
If you require immediate assistance please consider sponsoring us.

@vogt31337
Copy link
Author

Since about a month has passed, I'd like to ask if there was something done?
@thedrow Maybe you could provide some quick tips?

BR

@davidjrice
Copy link
Contributor

davidjrice commented Nov 28, 2023

Hey @vogt31337 ran into this issue trying to get setup with SSL myself. Posting for posterity in case any else does too :)

These celery configuration options work for me and allowed kombu to talk with my self-signed SSL configured Redis instance

import ssl
from app import config
from celery import Celery


app = Celery(
    __name__,
    broker=config.REDIS_URI,
    broker_use_ssl={
        "ssl_cert_reqs": ssl.CERT_NONE,
        "ssl_keyfile": config.REDIS_SSL_KEY,
        "ssl_certfile": config.REDIS_SSL_CERT,
        "ssl_ca_certs": config.REDIS_SSL_CA_CERT,
    },
)
  • You should setup the following configuration variables, pointing to the full path of your config (recommend) but relative paths are also supported
  • REDIS_SSL_KEY: e.g. "redis.key"
  • REDIS_SSL_CERT: e.g. "redis.crt"
  • REDIS_SSL_CA_CERT: e.g. "ca.crt"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants