# -alias 产生别名 每个keystore都关联这一个独一无二的alias, 这个alias通常不区分大小写# -keystore 指定密钥库的名称(产生的各类信息将不在.keystore文件中)# -validity 指定创建的证书有效期多少天(默认: 90)# -keysize 指定密钥长度(默认: 1024)
keytool -genkey -alias tomcat -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore /home/ubuntu/answer/fabric/tomcat.keystore -validity 3650
Enter keystore password: # 123456
Re-enter new password: # 123456
What is your first and last name?
[Unknown]: l
What is the name of your organizational unit?
[Unknown]: l
What is the name of your organization?
[Unknown]: l
What is the name of your City or Locality?
[Unknown]: l
What is the name of your State or Province?
[Unknown]: l
What is the two-letter country code for this unit?
[Unknown]: l
Is CN=l, OU=l, O=l, L=l, ST=l, C=l correct?
[no]: yes