SSL

クオリティの高い保障を低コストで実現した SSL 証明書

Contact Us For SSLAdd SSL to your shopping cart SSL Assistance

販売窓口:  国内: TEL:03-5812-7460   米国: +1.703.581.6361

Select Your Region

セキュアアカウントログイン

Forgotten Password?

サイト内の現在の位置 : Comodo SSL ホーム > サポート

JavaベースのWebサーバーによるCSRの生成

次のようにkeytoolコマンドを使って鍵ファイルを作成します。
keytool -genkey -keyalg RSA -keystore domain.key -validity 360

サイト証明書に別名を使用したいときは、-alias yyy(yyyは別名)を挿入してください。

(validityは変わることがあるので注意)

指定されていないことについて次のような質問が表示されます。
Enter keystore password: (NOTE remember this for later use)
What is your first and last name? - This is the Common Name (Domain Name)
What is the name of your organizational unit?
What is the name of your organization?
What is the name of your City or Locality?
What is the name of your State or Province?
What is the two-letter country code for this unit?


次に情報が正しいかどうかを訊かれます。
Is CN=www.yourdomain.com, OU=Your Organization Unit Unit, O=Your Organization, L=Your City, ST=Your State, C=Your Country correct?

それに対する応答が 'y' か 'yes' の場合、パスワードを求められます。
Enter key password for <mykey>
注: このパスワードをメモしてください。
<mykey> は証明書のデフォルトの別名です。

次のようにkeytoolコマンドを使ってCSRファイルを作成します。
keytool -certreq -keyalg RSA -file domain.csr -keystore domain.key

パスワードの入力を求められます。
Enter keystore password:

パスワードが正しい場合、CSRが作成されます。
パスワードが正しくない場合、パスワードエラーが表示されます。
証明書を要求するとき、このCSR内のテキストが必要になります。