mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 11:27:05 +00:00
Tweaking Postgres SSL README
This commit is contained in:
parent
e35d618656
commit
2f2586db36
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user