keytool 用来创建keystore和keys。其中keystore将用来存放密匙(private keys)和公共钥匙的认证,此命令生成了一个名为Test.keystore的keystore文件.
keytool -genkey -dname "CN=Fan Gang, OU=FG, O=FG, L=FG, S=FG, C=US" -keystore Test.keystore -storepass 11252365 -keypass 11252365 -alias Test
CN=commonName
OU=organizationUnit
O=organizationName
L=localityName
S=stateName
C=country
-dname "CN=Mark Smith, OU=JavaSoft, O=Sun, L=Cupertino, S=California, C=US"
If a distinguished name string value contains a comma, the comma must be escaped by a "\" character when you specify the string on a command line
-storepass public key, storepass must be at least 6 characters long.
-keypass private key
-keystore the keystore's place
print out the contents of a keystore entry
keytool -list -alias myalias
keytool -genkey -dname "CN=Fan Gang, OU=FG, O=FG, L=FG, S=FG, C=US" -keystore Test.keystore -storepass 11252365 -keypass 11252365 -alias Test
CN=commonName
OU=organizationUnit
O=organizationName
L=localityName
S=stateName
C=country
-dname "CN=Mark Smith, OU=JavaSoft, O=Sun, L=Cupertino, S=California, C=US"
If a distinguished name string value contains a comma, the comma must be escaped by a "\" character when you specify the string on a command line
-storepass public key, storepass must be at least 6 characters long.
-keypass private key
-keystore the keystore's place
print out the contents of a keystore entry
keytool -list -alias myalias
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货