feat: keystore

This commit is contained in:
caiyuchao
2025-04-15 14:13:27 +08:00
parent f3040ecf67
commit 88aae7d0dc
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@@ -109,8 +109,8 @@ public class LicenseCreatorController {
param.setLicensePath(genParam.getLicensePath());
}
// 相对路径resources资源目录
String resourcePath = getClass().getClassLoader().getResource("").getPath();
param.setPrivateKeysStorePath(resourcePath + "privateKeys.keystore");
// String resourcePath = getClass().getClassLoader().getResource("").getPath();
param.setPrivateKeysStorePath("/opt/license/keystore/privateKeys.keystore");
// param.setPrivateKeysStorePath("D:\\projects\\testdir\\spring-boot2-license\\cloud-license-serve\\target\\classes\\privateCerts.keystore");
param.setIssuedTime(new Date());
param.setExpiryTime(genParam.getExpiryTime());