Home | Mirror | SearchITEYE 博客 | OSChina 博客 | 51CTO 博客

Chapter 16. Java - keytool

Table of Contents

16.1. 创建证书
16.2. Private key generation
16.3. Public Key Certificate (optional)
16.4. import your signed certificate
16.5. Import the certificate and attach it to your server key pair
16.6. Key pair verification

16.1. 创建证书

keytool -genkey -keyalg RSA -keystore keys/server.keystore
Enter keystore password:  changeit
What is your first and last name?
  [Unknown]:  www.caucho.com
What is the name of your organizational unit?
  [Unknown]:  Resin Engineering
What is the name of your organization?
  [Unknown]:  Caucho Technology, Inc.
What is the name of your City or Locality?
  [Unknown]:  San Francisco
What is the name of your State or Province?
  [Unknown]:  California
What is the two-letter country code for this unit?
  [Unknown]:  US
Is <CN=www.caucho.com, OU=Resin Engineering,
  O="Caucho Technology, Inc.", L=San Francisco, ST=California, C=US> correct?
  [no]:  yes

Enter key password for <mykey>
        (RETURN if same as keystore password):  changeit
comments powered by Disqus