Skip to content

Commit

Permalink
postgres listener was incorrectly using the mysql certificate & key
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Nov 14, 2024
1 parent cc0b054 commit 557921f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions warpgate-protocol-postgres/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ impl ProtocolServer for PostgresProtocolServer {
let config = self.services.config.lock().await;
let certificate_path = config
.paths_relative_to
.join(&config.store.mysql.certificate);
let key_path = config.paths_relative_to.join(&config.store.mysql.key);
.join(&config.store.postgres.certificate);
let key_path = config.paths_relative_to.join(&config.store.postgres.key);

TlsCertificateAndPrivateKey {
certificate: TlsCertificateBundle::from_file(&certificate_path)
Expand Down

0 comments on commit 557921f

Please sign in to comment.