Skip to content

lower level configuration of TLS #789

Open
@dwalker-va

Description

@dwalker-va

How would I configure lib/pq's TLS options directly?

go-sql-driver/mysql offers RegisterTLSConfig which accepts a *tls.Config.

I have an application that is managing connections to hundreds of databases for secondary indexing, and the TLS configurations are not stored in files on that application - I just need to be able to build these TLS configs up manually.

If I'm not missing something obvious, would a PR that exposed this functionality be welcome?

Other pg drivers like https://github.com/jackc/pgx and https://github.com/go-pg/pg support this in an obvious way (a method or config object that accepts a tls config)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions