Gradle 如何向install4j提供密钥文件密码

Gradle 如何向install4j提供密钥文件密码,gradle,install4j,Gradle,Install4j,我已经自签名了一个证书,我正在尝试使用Install4j对exe进行签名。我在上面放了一个密码,是12345678。密钥文件似乎已找到,并且已加密(pw:12345678)。输出为: Loading config file C:\Users\alexa\IdeaProjects\downlords-faf-client\downlords-faf-client.install4j-----------------------------------------------------------

我已经自签名了一个证书,我正在尝试使用Install4j对exe进行签名。我在上面放了一个密码,是12345678。密钥文件似乎已找到,并且已加密(pw:12345678)。输出为:

Loading config file C:\Users\alexa\IdeaProjects\downlords-faf-client\downlords-faf-client.install4j------------------------------------------------------------------------------
The private key is encrypted. To avoid manual intervention, set the
"--win-keystore-password" command line option or the 
"winKeystorePassword" gradle property or ant task attribute. 
------------------------------------------------------------------------------
Enter the password for the Windows key store:


Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings
10 actionable tasks: 2 executed, 8 up-to-date
install4j: compilation failed. Reason: null
我已经尝试在gradle.properties和通过命令行设置密码


设置gradle属性不会将值传递给install4j编译器,您必须在上配置该属性

应该说,错误消息具有误导性

“winKeystorePassword”渐变任务属性

而不是

“winKeystorePassword”渐变属性


这将在8.0.9版中修复。

根据我的研究发现,可能键的格式错误,应该是正确的。我用Export PfxCertificate生成了一个pfx文件。似乎证书在某种程度上被破坏了,只是Install4j的消息确实混淆了我所做的更改: