Chinaunix首页 | 论坛 | 博客
  • 博客访问: 198669
  • 博文数量: 42
  • 博客积分: 2520
  • 博客等级: 少校
  • 技术积分: 392
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-26 16:41
文章分类

全部博文(42)

文章存档

2010年(4)

2009年(38)

我的朋友

分类: 网络与安全

2009-08-11 15:26:26

:~# 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
阅读(749) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~