【发布时间】:2016-10-01 18:20:16
【问题描述】:
我正在尝试通过 SSL 连接到 AWS Redshift 服务器。我在 python 中使用 psycopg2 库来建立连接并使用sslmode='require' 作为连接行中的参数。不幸的是,我收到了这个错误:
sslmode value "require" invalid when SSL support is not compiled in
我阅读了许多其他类似的 PostgreSQL 案例,其中提到 PostgeSQL 版本存在问题,但我没有找到任何使用 Psycopg2 的 Redshift 解决方案。我需要为 Redshift 安装任何特定的 SSL 证书吗?如果是的话,我该如何使用 Psycopg2 呢?任何帮助将不胜感激。
【问题讨论】:
标签: python ssl ssl-certificate amazon-redshift psycopg2