cpp*_*oob 5 python ssl psycopg2 ssl-certificate amazon-redshift
我正在尝试通过 SSL 连接到 AWS Redshift 服务器。我在 python 中使用 psycopg2 库来建立连接并用作sslmode='require'连接线中的参数。不幸的是我收到了这个错误:
sslmode value "require" invalid when SSL support is not compiled in
Run Code Online (Sandbox Code Playgroud)
我阅读了许多其他类似的 PostgreSQL 案例,其中提到 PostgeSQL 版本存在问题,但我没有找到任何使用 Psycopg2 的 Redshift 解决方案。我是否需要为 Redshift 安装任何特定的 SSL 证书?如果是,我该如何使用 Psycopg2 进行操作?任何帮助将不胜感激。
| 归档时间: |
|
| 查看次数: |
2711 次 |
| 最近记录: |