-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_keystore.bat
18 lines (18 loc) · 968 Bytes
/
create_keystore.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@echo off
set remitent_file= remitent.cer
set destinatary_file= destinatary.cer
set keystore_file= keystore.jks
cls
echo Create CER files.
echo Create JKS file.
echo.
echo remitent_file =%remitent_file%
echo destinatary_file =%destinatary_file%
echo keystore_file =%keystore_file%
echo.
pause
echo.
"%JAVA_HOME%\bin\keytool.exe" -v -genkey -alias remitent_key -keyalg RSA -keysize 1024 -validity 365 -keypass remitentpassword -keystore %keystore_file% -storepass mystorepassword
"%JAVA_HOME%\bin\keytool.exe" -v -genkey -alias destinatary_key -keyalg RSA -keysize 1024 -validity 365 -keypass destinatarypassword -keystore %keystore_file% -storepass mystorepassword
"%JAVA_HOME%\bin\keytool.exe" -v -export -alias remitent_key -file %remitent_file% -keystore %keystore_file% -storepass mystorepassword
"%JAVA_HOME%\bin\keytool.exe" -v -export -alias destinatary_key -file %destinatary_file% -keystore %keystore_file% -storepass mystorepassword