При выполнении со старым алгоритмом я получил подпись jar:
Код: Выделить всё
D:\Buildtools\zulu17.52.17-ca-jdk17.0.12-win_x64\bin\jarsigner.exe -storetype Windows-ROOT -sigalg SHA1withRSA -digestalg SHA1 -sigfile SigFileName -tsa http://timestamp.digicert.com D:\JenkinsData\workspace\plugin\target\plugin-37.5.0-SNAPSHOT.jar "Friendly name"
Код: Выделить всё
jar signed.
Warning:
The SHA1 algorithm specified for the -digestalg option is considered a security risk and is disabled.
The SHA1withRSA algorithm specified for the -sigalg option is considered a security risk and is disabled.
POSIX file permission and/or symlink attributes detected. These attributes are ignored when signing and are not protected by the signature.
The signer certificate will expire on 2024-11-19.
The timestamp will expire on 2031-11-10.
Код: Выделить всё
D:\Buildtools\zulu17.52.17-ca-jdk17.0.12-win_x64\bin\jarsigner.exe -storetype Windows-ROOT -sigalg SHA256withRSA -digestalg SHA256 -sigfile SigFileName -tsa http://timestamp.digicert.com D:\JenkinsData\workspace\plugin\target\plugin-37.5.0-SNAPSHOT.jar "Friendly name"
Код: Выделить всё
jarsigner: unable to sign jar: java.security.SignatureException: error 2148073494, Keyset does not exist
Может ли кто-нибудь указать мне, в чем проблема с этим изменением? Я удивлен, что изменение параметров закончится неработающей подписью.
Подробнее здесь: https://stackoverflow.com/questions/790 ... -not-exist