WebLogic Server コマンド リファレンス
![]() |
![]() |
![]() |
![]() |
CertGen
ユーティリティは、プロダクション環境用ではなくデモまたはテスト目的専用の証明書を生成します。
$java utils.CertGen
[-cacert <ca_cert_file-name
>] [-cakey <ca_key_filename
>]
[-cakeypass <ca_key_password
>] [-selfsigned]
[-certfile <certfile
>] [-keyfile <privatekeyfile
>]
[-keyfilepass <keyfilepassword
>] [-strength <keystrength
>]
[-cn <commonname
>] [-ou <orgunit
>] [-o <organization
>]
[-l <locality
>] [-s <state
>] [-c <countrycode
>]
[-subjectkeyid <subjectkeyidentifier
>]
[-subjectkeyidformat UTF-8|BASE64]
|
|
デフォルトでは、CertGen ユーティリティはカレント ディレクトリまたは WL_HOME
ディレクトリから CertGenCA.der
および CertGenCAKey.der
ファイルを検索します。これは、weblogic.home
システム プロパティまたは CLASSPATH
で指定します。代わりに、コマンドラインで CA ファイルを指定することもできます。
次のコマンドを入力すると、testcert
という名前の証明書ファイルと testkey
という名前のプライベート キー ファイルが生成されます。
$ java utils.CertGen mykeypass testcert testkey
Creating Domestic Key Strength - 1024
Encoding
................................................................
................................................................
................................................................
Created Private Key files - testkey.der and testkey.pem
Encoding
................................................................
................................................................
................................................................
Created Certificate files - testcert.der and testcert.pem
................................................................
![]() ![]() |
![]() |
![]() |