這是本文件的舊版!


Issue personal certificate with keytool

@echo off
set KEYTOOL=C:\Program Files\Java\jdk1.8.0_91\bin\keytool.exe
set KEYSTORE=C:\Program Files\Java\jdk1.8.0_91\bin\test_keystore
set ALIAS=test_keystore
 
"%KEYTOOL%" -keystore "%KEYSTORE%" -alias %ALIAS% -genkey -keyalg RSA -validity 3650

@echo off
 
set KEYTOOL=C:\Program Files\Java\jdk1.8.0_91\bin\keytool.exe
set KEYSTORE=C:\Program Files\Java\jdk1.8.0_91\bin\test_keystore
 
"%KEYTOOL%" -list -v -keystore "%KEYSTORE%"