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

Chapter 14. Java - keytool

Table of Contents

14.1. 创建证书
14.2. Private key generation
14.3. Public Key Certificate (optional)
14.4. import your signed certificate
14.5. Import the certificate and attach it to your server key pair
14.6. Key pair verification

14.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