N. Silviu
N. Silviu

Reputation: 113

Quarkus JDBC connection with SSL

I using quarkus with Panache + Agroal.

I need to setup a DB connection(postgres) with SSL enabled. So I need to somehow configure the server-cert, client-cert and client-key.

I only see this available for the reactive client.

Can this be achieved for non-reactive one? I find it very hard to believe that nobody needed this.

Upvotes: 1

Views: 1444

Answers (1)

Tony Yip
Tony Yip

Reputation: 750

You can specify it via JDBC url. Different database would have its own way to config ssl. For postgres, it would be sslcert and sslkey, ref https://jdbc.postgresql.org/documentation/head/connect.html#ssl

Upvotes: 2

Related Questions