I build a database with single master node and mulit slave nodes, and each node with different ssl CA and cert and key. I used datasource like c3p0 to create connection and jdbc url like: jdbc:mysql:loadbalance//slave1:port,slave2:port/mydatabase?usessl=true, due to different ca of slave1 and slave2, i have no idea how to hot swap ca while mysql loadbalance strategy change physical slave host for each query action.
I know that if all nodes use same ca can resolve this issue, but for security, we do not want use this way.
May any one tell me how to do? Thanks a lot!
I know that if all nodes use same ca can resolve this issue, but for security, we do not want use this way.
May any one tell me how to do? Thanks a lot!