license

1、生成key,设密码为123456a
cd /Users/chengzhong/code/workspace/license-master
#先清除license-master下面的privateKeys.store,publicCerts.store
keytool -genkey -alias privatekeys -keysize 1024 -keystore privateKeys.store -validity 3650

keytool -export -alias privatekeys -file certfile.cer -keystore privateKeys.store

keytool -import -alias publiccert -file certfile.cer -keystore publicCerts.store
会在当前目录生成privateKeys.store与publicCerts.store

2、把privateKeys.store copy到/Users/chengzhong/code/workspace/license-master/license-app/license-creator-app-test/src/main/resources/

3、启动本程序(LicenseCreatorApp.java)
4、在postman请求http://localhost:8080/license/generate
注意以下两参数privateKeysStorePath的/表示是classpath的根目录
  "storePass": "123456a",
  "privateKeysStorePath": "/privateKeys.store"

5.请求返回成功,生成的license文件在/Users/chengzhong/code/workspace/license-master/license文件夹下

文/程忠 浏览次数:0次   2023-12-12 12:34:16

相关阅读


评论:
点击刷新

↓ 广告开始-头部带绿为生活 ↓
↑ 广告结束-尾部支持多点击 ↑