Коллеги, что делаю не так? Хочу подключиться к postgres в python используя ssl. Добавил в параметры подключения 'sslmode':'require', а в connection string db_config['sslmode']. Но jupiter notebook пишет 'ERROR: odyssey: c86ee694d9d82: SSL is required' Что делаю не так?
db_config = {'user': 'xxx',
'pwd': 'yyy',
'host': 'ccc',
'port': 6432,
'db': 'zzz',
'sslmode':'require'}
connection_string = 'postgresql://{}:{}@{}:{}/{}{}'.format(db_config['user'],
db_config['pwd'],
db_config['host'],
db_config['port'],
db_config['db'],
db_config['sslmode']
)