diff --git a/README.md b/README.md index f6e1e082b..ceabb1b58 100644 --- a/README.md +++ b/README.md @@ -165,19 +165,23 @@ gradle jar cd ./build/libs/ java -jar SSLPoke-1.0.jar www.github.com 443 + Successfully connected java -jar SSLPoke-1.0.jar YOUR-POSTGRES-DATABASE-HOST PORT You can add switches e.g. for debugging. + java -jar -Dhttps.protocols=TLSv1.1,TLSv1.2 -Djavax.net.debug=all SSLPoke-1.0.jar localhost 5432 To import a certificate: + 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 To get certificate from the server / get further debug information: + openssl s_client -connect ip:port The above section is work in progress.