Browse Source

Allow SERVER_TYPE=postgres

Verifying PostgreSQL certificates requires setting the protocol type for s_client as it is not plain TLS, but behaving more like StartTLS in other protocols.
pull/835/head
Joerg Sonnenberger 2 years ago
committed by GitHub
parent
commit
764cb7c8b0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      getssl

+ 3
- 0
getssl View File

@ -2438,6 +2438,9 @@ set_server_type() { # uses SERVER_TYPE to set REMOTE_PORT and REMOTE_EXTRA
REMOTE_PORT=5269
elif [[ ${SERVER_TYPE} == "ldaps" ]]; then
REMOTE_PORT=636
elif [[ ${SERVER_TYPE} == "postgres" ]]; then
REMOTE_PORT=5432
REMOTE_EXTRA="-starttls postgres"
elif [[ ${SERVER_TYPE} =~ ^[0-9]+$ ]]; then
REMOTE_PORT=${SERVER_TYPE}
else


Loading…
Cancel
Save