:~# keytool -genkey -alias TTT -validity 3650 -keyalg RSA
Enter keystore password:
Re-enter new password:
What is your first and last name?
[Unknown]: TTT
What is the name of your organizational unit?
[Unknown]: RLAB
What is the name of your organization?
[Unknown]: TEST
What is the name of your City or Locality?
[Unknown]: beijing
What is the name of your State or Province?
[Unknown]: beijing
What is the two-letter country code for this unit?
[Unknown]: CN
Is CN=TTT, OU=RLAB, O=TEST, L=beijing, ST=beijing, C=CN correct?
[no]: y
Enter key password for
(RETURN if same as keystore password): <回车>
在用户目录下生成.keystore 文件,以上实验是在root用户,因此到/root目录下即可看到该文件
:~# ls -a /root/.keystore
/root/.keystore
阅读(783) | 评论(0) | 转发(0) |