Secured Connection¶
Configure Secured Connection¶
to secure the connection to remote database, we need to configure additional SSL related parameters to a connector that has been created by synchdb_add_conninfo
. The SSL certificates and private keys must be packaged as Java keystore file with a passphrase. These information is then passed to SynchDB via synchdb_add_extra_conninfo().
synchdb_add_extra_conninfo¶
Purpose: Configures extra connector parameters to an existing connector created by synchdb_add_conninfo
Parameter | Description | Required | Example | Notes |
---|---|---|---|---|
name |
Unique identifier for this connector | ✓ | 'mysqlconn' |
Must be unique across all connectors |
ssl_mode |
SSL mode | ☐ | 'verify_ca' |
can be one of:
|
ssl_keystore |
keystore path | ☐ | /path/to/keystore |
path to the keystore file |
ssl_keystore_pass |
keystore password | ☐ | 'mykeystorepass' |
password to access the keystore file |
ssl_truststore |
trust store path | ☐ | '/path/to/truststore' |
path to the truststore file |
ssl_truststore_pass |
trust store password | ☐ | 'mytruststorepass' |
password to access the truststore file |
SELECT synchdb_add_extra_conninfo('mysqlconn', 'verify_ca', '/path/to/keystore', 'mykeystorepass', '/path/to/truststore', 'mytruststorepass');
synchdb_del_extra_conninfo¶
Purpose: Deletes extra connector paramters created by synchdb_add_extra_conninfo
SELECT synchdb_del_extra_conninfo('mysqlconn');