Thursday, August 25, 2016

how to configure django to use TLS/SSL for db auth in configuration.py

helo,

in my organization we have to use TLS/SSL for everything. I have set up my postgresql db to use the certs and ciphers I need. Now I need to configure my configuration.py to authentication using certs and TLS/SSL and not a user/pass combo. How do I go about that?


this is what I got

DATABASE = {      'NAME': 'netbox',               # Database name      'USER': 'netbox',               # PostgreSQL username      'PASSWORD': 'J5brHrAXFLQSif0K', # PostgreSQL password      'HOST': 'localhost',            # Database server      'PORT': '',                     # Database port (leave blank for default)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/05a2fd20-47d5-4a86-a4c7-5ef6e17d6b1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment