Skip to content

Commit 2f2586d

Browse files
committed
Tweaking Postgres SSL README
1 parent e35d618 commit 2f2586d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -165,19 +165,23 @@ gradle jar
165165
cd ./build/libs/
166166

167167
java -jar SSLPoke-1.0.jar www.github.com 443
168+
168169
Successfully connected
169170

170171
java -jar SSLPoke-1.0.jar YOUR-POSTGRES-DATABASE-HOST PORT
171172

172173
You can add switches e.g. for debugging.
174+
173175
java -jar -Dhttps.protocols=TLSv1.1,TLSv1.2 -Djavax.net.debug=all SSLPoke-1.0.jar localhost 5432
174176

175177

176178
To import a certificate:
179+
177180
keytool -import -storepass changeit -noprompt -alias localhost_postgres_cert -keystore /Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/jre/lib/security/cacerts -trustcacerts -file /etc/postgres_ssl_certs/server/server.crt
178181

179182

180183
To get certificate from the server / get further debug information:
184+
181185
openssl s_client -connect ip:port
182186

183187
The above section is work in progress.

0 commit comments

Comments
 (0)