yugabyte / yugabyte-db

YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
https://www.yugabyte.com
Other
9.06k stars 1.09k forks source link

[sample-apps] Update YB Sample Apps to support cert and key for YSQL. #5599

Open Arnav15 opened 4 years ago

Arnav15 commented 4 years ago

Jira Link: DB-2067 Currently our sample apps don't support flags to provide a cert and a key file to connect to the YSQL endpoint. We have a flag called ssl_cert for YCQL connections. We can modify that flag to be called ycql_cert and add two new flags called ysql_cert and ysql_key [docs]. The cert then needs to be passed while making the jdbc connection here: https://github.com/yugabyte/yb-sample-apps/blob/master/src/main/java/com/yugabyte/sample/apps/AppBase.java#L148 The flags for the Connection class are here

tedyu commented 4 years ago

What would be proper value for sslmode when cert and key are passed to Connection ?

Thanks