blob: 35c4ee8111208e8d7a6570ab7e39d27bc8300055 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
@echo off
@echo ������Կ���ƣ�%1 ��Կ��·�������ƣ�%2 ֤��·�������ƣ�%3
set aliasName=clientkey
set storePath=./client_ks
set local=localhost
set certName=./client_key.cer
if not "%1"=="" (
set aliasName=%1
)
if not "%2"=="" (
set storePath=%2
)
if not "%3"=="" (
set certName=%3
)
@echo %aliasName% %storePath% %certName%
echo y|keytool -import -v -trustcacerts -alias %aliasName% -keystore %storePath% -file %certName% -storetype jceks -storepass client
|