Skip to content

Fails against pgbouncer #7

@adunstan

Description

@adunstan

In this example I have pgbouncer running on port 6932. I can connect using psql on SSL mode, but this script fails:

andrew@ad-c7:test $ psql "sslmode=verify-full host=localhost port=6932 dbname=workdb sslcert=myCA/curly.crt sslkey=myCA/curly.key sslrootcert=myCA/root.crt user=curly"
psql (11beta3 (2ndQPG 11.0r1.2))
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES128-GCM-SHA256, bits: 128, compression: off)
Type "help" for help.

workdb=> \q
andrew@ad-c7:test $ python postgres_get_server_cert.py localhost:6932 
Something failed while fetching certificate: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:579)
andrew@ad-c7:test $ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions