我正在尝试通过 PCF 使用 Spring Cloud Connectors 连接到 DB2,但我的 DB2 是 2-way SSL。谁能告诉我如何使用 Spring Cloud Connectors 配置 SSL?
通常我在没有 Spring Cloud 连接器的情况下这样使用
DB2SimpleDataSource dataSource = new DB2SimpleDataSource(); //NOSONAR
dataSource.setUser(userName);
dataSource.setPassword(password);
dataSource.setServerName(server);
dataSource.setPortNumber(Integer.parseInt(port));
dataSource.setDatabaseName(name);
dataSource.setDriverType(4);
dataSource.setSslConnection(true);
dataSource.setSslTrustStoreLocation("keystore/pas_ist_db.jks");
dataSource.setSslTrustStorePassword(sslPassword);