e223. creating a new key pair and self-signed certificate using keytool.txt

来自「这里面包含了一百多个JAVA源文件」· 文本 代码 · 共 24 行

TXT
24
字号
This example uses the keytool program to create a new key pair and self-signed certificate for the principal Duke. The example generates a 1024-bit Digital Signature Algorithm (DSA) key pair. 
    > keytool -genkey -alias alias -keystore .keystore
    Enter keystore password: password
    What is your first and last name?
      [Unknown]: Duke
    What is the name of your organizational unit?
      [Unknown]: JavaSoft
    What is the name of your organization?
      [Unknown]: Sun
    What is the name of your City or Locality?
      [Unknown]: Cupertino
    What is the name of your State or Province?
      [Unknown]: CA
    What is the two-letter country code for this unit?
      [Unknown]: US
    Is <CN=Duke, OU=JavaSoft, O=Sun, L=Cupertino, ST=CA, C=US> correct?
      [no]: yes


To create a 1024-bit RSA key: 
    > keytool -genkey -keyalg RSA -keysize 1024 -alias alias -keystore .keystore


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?