假设已经有.jks
证书文件及其密钥
命令为 jarsigner -keystore jks证书 -storepass 证书密码 你的JAR 证书的Alias
栗子:
./jdk-17.0.2/bin/jarsigner -keystore ./xxx.jks -storepass your-pass ./springboot.jar xxx
验证签名:
./jdk-17.0.2/bin/jarsigner -verify -verbose ./xxx.jar
Q.E.D.
🥕 zhou · · ·
假设已经有.jks
证书文件及其密钥
命令为 jarsigner -keystore jks证书 -storepass 证书密码 你的JAR 证书的Alias
栗子:
./jdk-17.0.2/bin/jarsigner -keystore ./xxx.jks -storepass your-pass ./springboot.jar xxx
验证签名:
./jdk-17.0.2/bin/jarsigner -verify -verbose ./xxx.jar
Q.E.D.