@rem "C:\Program Files (x86)\Java\jre1.8.0_131\bin\keytool" -genkey -alias myRsaKey -keysize 2048 -providername JCSPRSA -storetype HSMDB -dname CN=myRsaKey,O=CryptoPro,C=RU -keystore NONE -storepass 1 -keyalg CP_RSA -sigalg CP_SHA1withRSA -keypass 11111111
@rem "C:\Program Files (x86)\Java\jre1.8.0_131\bin\keytool" -certreq -alias myRsaKey -providername JCSPRSA -keypass 11111111 -storetype HSMDB -keystore NONE -storepass 1 -sigalg CP_SHA1withRSA -file request.bin
@rem "C:\Program Files (x86)\Java\jre1.8.0_131\bin\keytool" -selfcert -alias myRsaKey -providername JCSPRSA -keypass 11111111 -storetype HSMDB -keystore NONE -storepass 1 -sigalg CP_SHA1withRSA -dname CN=myRsaKeyss,O=CryptoPro,C=RU
@rem "C:\Program Files (x86)\Java\jre1.8.0_131\bin\keytool" -import -alias myRsaKey -providername JCSPRSA -keypass 11111111 -storetype HSMDB -keystore NONE -storepass 1 -file certnew_rsa.p7b -noprompt
@rem "C:\Program Files (x86)\Java\jre1.8.0_131\bin\keytool" -export -alias myRsaKey -providername JCSPRSA -storetype HSMDB -keystore NONE -storepass 1 -file myRsaKeyCert.cer
@rem "C:\Program Files\Java\jdk1.8.0_112\bin\jarsigner.exe" -keystore NONE -storepass 1 -storetype HSMDB -signedjar test_signed_sha256rsa.jar -digestalg CP_SHA256 -sigalg CP_SHA256withRSA -verbose -providerName JCSPRSA -keypass 11111111 test.jar myRsaKey
@rem "C:\Program Files (x86)\Java\jre1.8.0_131\bin\keytool" -delete -alias myRsaKey -providername JCSPRSA -storetype HSMDB -keystore NONE -storepass 1