@rem Контейнеры RSA (2048) должны быть без пароля
set JDK_DIR=C:\Program Files\Java\jdk1.8.0_111

"%JDK_DIR%\bin\jarsigner.exe" -keystore trust_for_jar_signer -storepass 1 -storetype HDIMAGE -signedjar sha256rsa2048.jar -digestalg CP_SHA256 -sigalg CP_SHA256withRSA -providerName JCSPRSA test.jar rsanpas
"%JDK_DIR%\bin\jarsigner.exe" -verify sha256rsa2048.jar

pause

"%JDK_DIR%\bin\jarsigner.exe" -keystore trust_for_jar_signer -storepass 1 -storetype HDIMAGE -signedjar sha256rsa2048sig.jar -digestalg CP_SHA256 -sigalg CP_SHA256withRSA -providerName JCSPRSA test.jar rsasignpas
"%JDK_DIR%\bin\jarsigner.exe" -verify sha256rsa2048sig.jar