WebLogic Server Command Reference
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
The ImportPrivateKey
utility is used to load a private key into a private keystore file.
$
java utils.ImportPrivateKey
keystore
storepass
storetype
keypass
alias
certfile
keyfile
keyfilepass
CertGen
utilityImportPrivateKey
utilityNote: By default, the CertGen utility looks for the CertGenCA.der
and CertGenCAKey.der
files in the current directory, or in the WL_HOME
/server/lib
directory, as specified in the weblogic.home
system property or the CLASSPATH
.
Alternatively, you can specify CA files on the command line. If you want to use the default settings, there is no need to specify CA files on the command line.
$ 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
................................................................
$ java utils.der2pem CertGenCA.der Encoding
................................................................
................................................................
$ type testcert.pem CertGenCA.pem >> newcerts.pem
$ java utils.ImportPrivateKey mykeystore mypasswd mykey
mykeypass newcerts.pem testkey.pem
Keystore file not found, creating it
![]() ![]() |
![]() |
![]() |