Skip to content

Commit

Permalink
Reduce verify to 2 and check only agains /etc/ssl/certs (#162)
Browse files Browse the repository at this point in the history
Checking against locally installed certificate (CAfile) makes it impossible to switch server certificate without touching stunnel configuration.
  • Loading branch information
CyberDem0n committed May 8, 2017
1 parent bf2dc6e commit 551915e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 145 deletions.
4 changes: 2 additions & 2 deletions postgres-appliance/configure_spilo.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ def write_ldap_configuration(placeholders, overwrite):
connect = {0}:{1}
client = yes
accept = 389
verify = 3
CAfile = /etc/stunnel/chain.pem
verify = 2
CApath = /etc/ssl/certs
""".format(host, port)
write_file(stunnel_config, '/etc/stunnel/ldap.conf', overwrite)

Expand Down
143 changes: 0 additions & 143 deletions postgres-appliance/stunnel.d/chain.pem

This file was deleted.

0 comments on commit 551915e

Please sign in to comment.