using TLS/SSL between postgresql and netbox #396

Closed
opened 2025-12-29 16:21:38 +01:00 by adam · 2 comments
Owner

Originally created by @aoyawale on GitHub (Aug 25, 2016).

helo,

in our org we are forced to set up postgresql to use TLS and certain ciphers regardless if we are letting remote connections or not. I configured the postgresql.conf with the certs and turned SSL on. I also added the database and user with md5 to pg_hba.conf. Now I get a server error:

<class 'django.db.utils.OpertaionalError'>
FATAL: password authentication failed for user "dude"

maybe i'm missing a step or is something I have to change in netbox.

Originally created by @aoyawale on GitHub (Aug 25, 2016). helo, in our org we are forced to set up postgresql to use TLS and certain ciphers regardless if we are letting remote connections or not. I configured the postgresql.conf with the certs and turned SSL on. I also added the database and user with md5 to pg_hba.conf. Now I get a server error: <class 'django.db.utils.OpertaionalError'> FATAL: password authentication failed for user "dude" maybe i'm missing a step or is something I have to change in netbox.
adam closed this issue 2025-12-29 16:21:38 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 7, 2016):

This wouldn't be a NetBox-specific issue, but rather one related to general Django configuration. A quick search didn't yield anything helpful. I'm not sure if it's not supported or just not a common use case.

I'm going to close this issue, but if you happen across a configuration change needed to support it, please let me know and I'll work on integrating it.

@jeremystretch commented on GitHub (Sep 7, 2016): This wouldn't be a NetBox-specific issue, but rather one related to general Django configuration. A quick search didn't yield anything helpful. I'm not sure if it's not supported or just not a common use case. I'm going to close this issue, but if you happen across a configuration change needed to support it, please let me know and I'll work on integrating it.
Author
Owner

@AlexanderS commented on GitHub (Sep 7, 2016):

You can add {'sslmode': 'require'} in the OPTIONS setting of your database backend.

@AlexanderS commented on GitHub (Sep 7, 2016): You can add `{'sslmode': 'require'}` in the [OPTIONS setting of your database backend](https://docs.djangoproject.com/el/1.10/ref/settings/#std:setting-OPTIONS).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#396