Java的keytool命令都有哪些用途?
来源:互联网 发布:重庆优化网站 编辑:程序博客网 时间:2024/06/11 04:47
Keytool是个密钥和证书管理工具。它使用户能管理自己的公钥/私钥对及相关证书,用于(通过数字签名)自我认证(用户向别的用户/服务认证自己)或数据完整性以及认证服务。它还允许用户储存他们的通信对等者的公钥(以证书的形式)。
证书是来自一个实体(个人、公司等)的经数字签名的声明,它声明某些其他实体的公钥(以及其他信息)具有某一的特定值(参见证书)。当数据被数字化签名后,校验签名即可检查数据的完整性和真实性。完整性的意思是数据没有被修改或损坏过,真实性的意思是数据的确是来自声称创建了该数据和对它进行了签名的实体。
Keytool还允许用户管理在对称加密/解密(例如DES)使用的密钥。
Keytool将密钥和证书储存在一个所谓的密钥仓库中。缺省的密钥仓库实现将密钥仓库实现为一个文件。它用口令来保护私钥。
keytool英文介绍
keytool is a key and certificate management utility. It allows users to administer their own public/private key pairs and associated certificates for use in self-authentication (where the user authenticates himself/herself to other users/services) or data integrity and authentication services, using digital signatures. It also allows users to cache the public keys (in the form of certificates) of their communicating peers.
A certificate is a digitally signed statement from one entity (person, company, etc.), saying that the public key (and some other information) of some other entity has a particular value. (See Certificates.) When data is digitally signed, the signature can be verified to check the data integrity and authenticity. Integrity means that the data has not been modified or tampered with, and authenticity means the data indeed comes from whoever claims to have created and signed it.
Keytool also enables users to administer secret keys used in symmetric encryption/decryption (e.g. DES).
Keytool stores the keys and certificates in a keystore.
命令:
-certreq 生成证书请求
-changealias 更改条目的别名
-delete 删除条目
-exportcert 导出证书
-genkeypair 生成密钥对
-genseckey 生成密钥
-gencert 根据证书请求生成证书
-importcert 导入证书或证书链
-importpass 导入口令
-importkeysotre 从其他密钥库导入一个或所有条目
-keypasswd 更改条目的密钥口令
-list 列出密钥库中的条目
-printcert 打印证书内容
-printcertreq 打印证书请求的内容
-printcrl 打印CRL文件的内容
-storepasswd 更改密钥库的存储口令
上述列出了所有keytool命令及实现功能。每个命令的使用细则单独查询吧。
- Java的keytool命令都有哪些用途?
- 检测硬盘的DOS命令都有哪些
- mysql数据库查询数据库都有哪些用户的命令
- Linux上的文件管理类命令都有哪些
- C#中反射的用途有哪些
- XML有哪些用途? .
- java必须捕捉的异常都有哪些?
- 优秀的Java程序员都有哪些特点?
- Java-获取本地都有哪些字体
- java分布式都有哪些知识点
- java语言都有哪些优点
- 3.2 Java都有哪些命名规范
- Java高级编程都有哪些知识点
- java设计模式都有哪些?
- java jar包你熟悉哪些?有什么用途
- SEO服务的内容都有哪些?
- 目前所有的视频格式都有哪些?
- 世界上的“鬼船”都有哪些?
- PHPSTORM支持dwt文件设置方法
- 水池数目
- JS学习(一)
- linux部署java web项目
- 倒计时的问题
- Java的keytool命令都有哪些用途?
- FileMerge ——文件对比工具使用
- Android开发贴士经典大集合
- 使用SQLite数据库和Access数据库的一些经验总结
- We are unable to process your request. An unknown error occurred.
- OpenCV2帧间差分检测运动目标
- 数据缓存
- 窗口操作
- 258. Add Digits