Commit 2f2586d 1 parent e35d618 commit 2f2586d Copy full SHA for 2f2586d
File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -165,19 +165,23 @@ gradle jar
165
165
cd ./build/libs/
166
166
167
167
java -jar SSLPoke-1.0.jar www.github.com 443
168
+
168
169
Successfully connected
169
170
170
171
java -jar SSLPoke-1.0.jar YOUR-POSTGRES-DATABASE-HOST PORT
171
172
172
173
You can add switches e.g. for debugging.
174
+
173
175
java -jar -Dhttps.protocols=TLSv1.1,TLSv1.2 -Djavax.net.debug=all SSLPoke-1.0.jar localhost 5432
174
176
175
177
176
178
To import a certificate:
179
+
177
180
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
178
181
179
182
180
183
To get certificate from the server / get further debug information:
184
+
181
185
openssl s_client -connect ip: port
182
186
183
187
The above section is work in progress.
You can’t perform that action at this time.
0 commit comments