当使用psycopg2库连接到需要客户端身份validation的Postgres服务器时,我看到了连接string,
import psycopg2 c = psycopg2.connect("host=myhost dbname=mydb sslmode=verify-full sslcert=/root/.postgresql/aa/postgresql.crt sslkey=/root/.postgresql/aa/postgresql.key")
psycopg2能处理密码encryption密钥文件吗? 如果postgresql.key受密码保护,会发生什么情况? connect()是否提示input密码来解开密钥? 可以在连接string中提供密钥文件的密码吗?
谢谢