Skip to content

fix(pgmoon) set the correct signature digest name when using ECDSA cert - #20

Merged
fffonion merged 1 commit into
Kong:kong-devfrom
outsinre:kong-dev
Jun 27, 2022
Merged

fffonion merged 1 commit into
Kong:kong-devfrom
outsinre:kong-dev

Conversation

@outsinre

@outsinre outsinre commented Jun 23, 2022 •

Copy link
Copy Markdown

fix(pgmoon) set the correct signature digest name

When doing SSL connection to Postgres with ECDSA certificate, the
wrong signature digest name is used.

@outsinre outsinre closed this Jun 24, 2022
@outsinre outsinre reopened this Jun 24, 2022
@outsinre outsinre changed the title fix(pgmoon) remove ecdsa-with- prefix from signature when using ECD… fix(pgmoon) set the correct signature digest name when using ECDSA cert Jun 27, 2022
@fffonion

Copy link
Copy Markdown

for context: the logic is reimplemented from https://github.com/postgres/postgres/blob/2b65de7fc296bb5060c8d4ae8cb680f71364fbe0/src/interfaces/libpq/fe-secure-openssl.c#L385

When doing SSL connection to Postgres with ECDSA certificate, the
wrong signature digest name is used. Use
https://github.com/fffonion/lua-resty-openssl#restyopensslobjects to
set correct signature digest names.

Fix https://konghq.atlassian.net/browse/FTI-3334.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants