public class ExportCert
extends java.lang.Object
This tool requires that the private key is saved in the directory, with its encryption password.
The store name will be alias-private-key.store
, where alias
is the certificate
alias to be exported.
Constructor and Description |
---|
ExportCert() |
Modifier and Type | Method and Description |
---|---|
private static void |
exportCertificate(DirectoryService dir,
java.lang.String alias,
java.lang.String storePassword,
java.lang.String keyEntryPassword)
Export the certificate and its private key.
|
static void |
main(java.lang.String[] args)
Command line driver.
|
private static void exportCertificate(DirectoryService dir, java.lang.String alias, java.lang.String storePassword, java.lang.String keyEntryPassword) throws java.lang.Exception
dir
- The instance of directory to read from.alias
- The certificate alias.storePassword
- The password to use for the created store.keyEntryPassword
- The password to use for the key-entry in the store.java.lang.Exception
- In case of errors.public static void main(java.lang.String[] args) throws java.lang.Exception
args
- Application command line parameters.java.lang.Exception
- In case of errors.