keytool -dname参数含义

运行
keytool -genkey -alias User(keystore的别名) -keyalg RSA -validity 7 -keystore keystore(指定keystore)
将会提示:
    Enter keystore password:yourpassword(输入密码)
  What is your first and last name?
  [Unknown]: your name(输入你的名字)
  What is the name of your organizational unit?
  [Unknown]:your organizational(输入你所在组织单位的名字)
  What is the name of your organization?
  [Unknown]:your organization name (输入你所在组织的名字)
  What is the name of your City or Locality?
  [Unknown]:your city name(输入所在城市的名字)
  What is the name of your State or Province?
  [Unknown]:your provice name(输入所在省份名字)
  What is the two-letter country code for this unit?
  [Unknown]:cn(输入国家名字)
  Is CN=your name, ōU=your organizaion, O="your organization name",
  L=your city name, ST=your province name, C=cn correct?
  [no]: yes
由此可见:
keytool -genkey -alias server -keysize 1024 -validity 3650 -keyalg RSA -dname "CN=sundoctor.com, OU=Developer,O=Techstar, L=Beijing, S=Beijing, C=CH" -keypass 123456 -storepass 123456 -keystore serverKeys.jks
中 -dname:
CN为你的姓名
OU为你的组织单位名称
O为你的组织名称
L为你所在的城市名称
S为你所在的省份名称
C为你的国家名称

你可能感兴趣的:(C++,c,C#)