Skip to content

Commit

Permalink
Merge pull request #835 from jsonn:patch-1
Browse files Browse the repository at this point in the history
Allow SERVER_TYPE=postgres
  • Loading branch information
timkimber committed Mar 18, 2024
2 parents 81b39a7 + d8647ef commit 1c0c363
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ these are available in getssl to check if the certificate is installed correctly
| xmpp | 5222 | StartTLS |
| xmpps | 5269 | |
| ldaps | 636 | |
| postgres | 5432 | |
| port number | | |

## Revoke a certificate
Expand Down
3 changes: 3 additions & 0 deletions getssl
Original file line number Diff line number Diff line change
Expand Up @@ -2440,6 +2440,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
Expand Down

0 comments on commit 1c0c363

Please sign in to comment.