Skip to content
Permalink
Browse files
fix security risk (#76)
Change-Id: I4e62d4e248329758358a9eb6d197d0d9ef49657e
  • Loading branch information
zhoney committed Apr 25, 2021
1 parent c426809 commit a63ba695f0242729ce31cea1bef142676eca0d63
Showing 2 changed files with 3 additions and 3 deletions.
@@ -57,7 +57,7 @@ POST http://localhost:8080/graphs/hugegraph/auth/users
返回报文中,密码为加密后的密文
```json
{
"user_password": "$2a$04$3CMnk2qlzMKxRdFYBNOaVuGNYf11dTAk9aGqBvpZINXU985uEvrYy",
"user_password": "******",
"user_email": "123@xx.com",
"user_update": "2020-11-17 14:31:07.833",
"user_name": "boss",
@@ -14,7 +14,7 @@ restserver.url=https://127.0.0.1:8080
# 服务端 keystore 文件路径,当协议为 https 时该默认值自动生效,可按需修改此项
ssl.keystore_file=conf/hugegraph-server.keystore
# 服务端 keystore 文件密码,当协议为 https 时该默认值自动生效,可按需修改此项
ssl.keystore_password=hugegraph
ssl.keystore_password=******
```

服务端的 conf 目录下已经给出了一个 keystore 文件`hugegraph-server.keystore`,该文件的密码为`hugegraph`
@@ -33,7 +33,7 @@ HugeClientBuilder builder = HugeClient.builder(url, graphName);
// 客户端 keystore 文件路径
String trustStoreFilePath = "hugegraph.truststore";
// 客户端 keystore 密码
String trustStorePassword = "hugegraph";
String trustStorePassword = "******";
builder.configSSL(trustStoreFilePath, trustStorePassword);
HugeClient hugeClient = builder.build();
```

0 comments on commit a63ba69

Please sign in to comment.