Network Deployment (Distributed operating systems), v8.0 > Reference > Commands (wsadmin scripting)
LTPACommandGroup command group
Use the Jython or Jacl scripting languages to import and export LTPA keys.
New feature: Use the importLTPAKeys command to import an LTPA key from a file and add it to the security runtime and configuration. The exportLTPAKeys command exports an LTPA key that is currently being used by the runtime to a file.New feature:
The LTPACommandGroup command group includes the following commands:
importLTPAKeys
The importLTPAKeys command imports an LTPA key from a file and adds it to the security runtime and configuration. The command takes the key from the file specified and adds it to the ltpa.jceks keystore where LTPA keys are stored. The key then becomes the current LTPA key of the runtime.
Target object None
Required parameters
-ltpaKeyFile
Path to the file that contains the LTPA key that is to be imported into the configuration and runtime. The parameter takes the file path URL format or just the file path. (String, required)
-password
The password of the LTPA key. (String, required)
Optional parameters None
Batch example...
### Jacl
wsadmin> $AdminTask importLTPAKeys {-ltpaKeyFile c:\temp\ltpa.key -password keypassword } wsadmin> $AdminTask importLTPAKeys {-ltpaKeyFile file:\temp\ltpa.key -password keypassword }### Jython
wsadmin> AdminTask.importLTPAKeys('[-ltpaKeyFile c:\temp\ltpa.key -password keypassword ]') wsadmin> AdminTask.importLTPAKeys('[-ltpaKeyFile file:\temp\ltpa.key -password keypassword ]')
exportLTPAKeys
The exportLTPAKeys command exports an LTPA key that is currently being used by the runtime to a file. If the file where the key is to be stored does not exist, it is created. If it does not exist, then the file is overwritten.
Target object None
Required parameters
-ltpaKeyFile
Path to the file that contains the LTPA key that is to be imported into the configuration and runtime. The parameter takes the file path URL format or just the file path. (String, required)
-password
The password of the LTPA key. (String, required)
Optional parameters None
Batch example...
### Jacl
wsadmin> $AdminTask exportLTPAKeys {-ltpaKeyFile c:\temp\writeltpa.key -password keypassword } wsadmin> $AdminTask exportLTPAKeys {-ltpaKeyFile file:\temp\writeltpa.key -password keypassword }### Jython
wsadmin> AdminTask.exportLTPAKeys('[-ltpaKeyFile c:\temp\writeltpa.key -password keypassword ]') wsadmin> AdminTask.exportLTPAKeys('[-ltpaKeyFile file:\temp\writeltpa.key -password keypassword ]')