Listing 1. Typical output from the keytool command.
清单1.keytool命令的典型输出。
Subsequent keytool commands must use this same alias to refer to the entity.
之后的keytool命令必须使用同样的别名引用这一项。
For a detailed explanation of the command line options used below, see the keytool User Guide.
有关下面使用的命令行选项的详细说明,请参阅keytool用户指南。
Enter keytool -list -keystore c: \ Argo \ security \ server.keystore -v from the command line.
从命令行输入keytool - list -keystorec: \argo \security \ server .keystore—v。
This is done by creating a digital certificate store using a supplied KeyTool command-line program.
它可以通过使用代理KeyTool命令行程序来建立数字证书存储及实现。
You can also check the documentation for the keytool security tool included in your JDK installation.
还可以查阅文档,获得JDK安装中附带的keytool安全工具。
To generate the private and public key information manually, use the keytool from the command line, as in Listing 1.
要手动生成私有、公共密钥信息,可以从命令行使用keytool,如清单1所示。
Once you've done so by typing yes, keytool creates the keystore with the private key and certificate and then exits.
通过输入yes确认后,keytool将使用私有密匙和证书创建keystore,随后退出该程序。
The sample keytool command lines in this section use the same file names and passwords as in the supplied example code.
本节中的样例keytool命令使用了与附带的示例代码相同的文件名和密码。
When you run the import command, keytool prints out the details of the certificate and asks if you trust the certificate.
运行导入命令时,keytool输出了证书的细节并询问您是否信任该证书。
First, we will use the Keytool to create a keystore, in which there will be a pair of keys (the public key and the private key).
首先,我们使用Keytool创建一个keystore,它包含一对密匙(公共密匙和私有密匙)。
Execute the following command within the directory where you unpacked the source code: keytool -genkey -keystore keystore -alias myself.
在将源代码解压缩的目录中执行以下命令:keytool- genkey -keystore keystore - alias myself。
The keytool documentation gives a good introduction to certificate structure and handling, along with keystores (discussed next) and other aspects of security.
keytool文档很好地介绍了证书结构和处理,以及keystores(稍后讨论)和其他安全性内容。
To verify that the keystore was properly created, execute the following command within the directory where you unpacked the source code: keytool -list-keystore keystore.
为验证是否正确创建了keystore,在将源代码解压缩的目录中执行以下命令:keytool - list - keystore keystore。
The keytool prompts for a number of information items used for the certificate generation (none of which really matter for use in testing) and then asks you to approve the information.
keytool提示了许多用于生成认证的信息项(这些信息都不会影响测试使用)并要求您确认这些信息。
For those who need to work with OpenSSL it is usually suggested to convert keys and certificates to PKCS12 and then import them in the keystore using the keytool command provided with the JDK.
对于那些需要使用OpenSSL的人来说,通常建议把key和证书转化成pkcs12,然后使用JDK提供的keytool命令导入到keystore。
For those who need to work with OpenSSL it is usually suggested to convert keys and certificates to PKCS12 and then import them in the keystore using the keytool command provided with the JDK.
对于那些需要使用OpenSSL的人来说,通常建议把key和证书转化成pkcs12,然后使用JDK提供的keytool命令导入到keystore。
应用推荐