diff --git a/src/docs/agent-bsm-lab-postgres/cert/dfxagent-bsm-lab-postgres.p12 b/src/docs/agent-bsm-lab-postgres/cert/dfxagent-bsm-lab-postgres.p12 new file mode 100644 index 0000000..420c52b Binary files /dev/null and b/src/docs/agent-bsm-lab-postgres/cert/dfxagent-bsm-lab-postgres.p12 differ diff --git a/src/docs/agent-bsm-lab-postgres/cert/dfxagent-local.p12 b/src/docs/agent-bsm-lab-postgres/cert/dfxagent-local.p12 deleted file mode 100644 index faa4d9e..0000000 Binary files a/src/docs/agent-bsm-lab-postgres/cert/dfxagent-local.p12 and /dev/null differ diff --git a/src/docs/agent-bsm-lab-postgres/cert/truststore-local.jks b/src/docs/agent-bsm-lab-postgres/cert/truststore-bsm-lab-postgres.jks similarity index 92% rename from src/docs/agent-bsm-lab-postgres/cert/truststore-local.jks rename to src/docs/agent-bsm-lab-postgres/cert/truststore-bsm-lab-postgres.jks index 5fb9ea4..2fd4f04 100644 Binary files a/src/docs/agent-bsm-lab-postgres/cert/truststore-local.jks and b/src/docs/agent-bsm-lab-postgres/cert/truststore-bsm-lab-postgres.jks differ diff --git a/src/docs/agent-bsm-lab-postgres/conf/dfxagent-bsm-lab-postgres.json b/src/docs/agent-bsm-lab-postgres/conf/dfxagent-bsm-lab-postgres.json index b129cc6..b6e57f5 100644 --- a/src/docs/agent-bsm-lab-postgres/conf/dfxagent-bsm-lab-postgres.json +++ b/src/docs/agent-bsm-lab-postgres/conf/dfxagent-bsm-lab-postgres.json @@ -3,11 +3,11 @@ "myHostId": "agent-bsm-lab-postgres", "myListenPort": 17801, "sslEnabled": true, - "keyStorePath": "D:/projects/bsm-lab/dfx/dfxagent/src/docs/agent-bsm-lab-postgres/cert/dfxagent-kdn.p12", + "keyStorePath": "D:/projects/bsm-lab/dfx/dfxagent/src/docs/agent-bsm-lab-postgres/cert/dfxagent-bsm-lab-postgres.p12", "keyStorePassword": "qortpals1!", - "keyStoreAlias": "dfxagent-local-01", + "keyStoreAlias": "agent-bsm-lab-postgres", "keyStoreType": "PKCS12", - "trustStorePath": "D:/projects/bsm-lab/dfx/dfxagent/src/docs/agent-bsm-lab-postgres/cert/truststore-kdn.jks", + "trustStorePath": "D:/projects/bsm-lab/dfx/dfxagent/src/docs/agent-bsm-lab-postgres/cert/truststore-bsm-lab-postgres.jks", "trustStorePassword": "qortpals1!", "trustStoreType": "JKS", "knownAgentList": [ diff --git a/src/main/java/com/bsmlab/dfx/agent/DfxAgentApplication.java b/src/main/java/com/bsmlab/dfx/agent/DfxAgentApplication.java index 6b59146..c31c9aa 100644 --- a/src/main/java/com/bsmlab/dfx/agent/DfxAgentApplication.java +++ b/src/main/java/com/bsmlab/dfx/agent/DfxAgentApplication.java @@ -59,6 +59,7 @@ public class DfxAgentApplication { props.put("server.ssl.trust-store", agentConfigDto.getTrustStorePath()); props.put("server.ssl.trust-store-password", agentConfigDto.getTrustStorePassword()); props.put("server.ssl.trust-store-type", "JKS"); + props.put("server.ssl.client-auth", "need"); } } catch (DatabindException e) { System.out.println("cannot parse a setting file. " + settingFilePath);