You can use the Jython or Jacl scripting languages to import and export LTPA keys.
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
Optional parameters
None.
Batch mode example usage
wsadmin> $AdminTask importLTPAKeys {-ltpaKeyFile c:\temp\ltpa.key -password keypassword } wsadmin> $AdminTask importLTPAKeys {-ltpaKeyFile file:\temp\ltpa.key -password keypassword }
wsadmin> AdminTask.importLTPAKeys('[-ltpaKeyFile c:\temp\ltpa.key -password keypassword ]') wsadmin> AdminTask.importLTPAKeys('[-ltpaKeyFile file:\temp\ltpa.key -password keypassword ]')
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
Optional parameters
None.
Batch mode example usage
wsadmin> $AdminTask exportLTPAKeys {-ltpaKeyFile c:\temp\writeltpa.key -password keypassword } wsadmin> $AdminTask exportLTPAKeys {-ltpaKeyFile file:\temp\writeltpa.key -password keypassword }
wsadmin> AdminTask.exportLTPAKeys('[-ltpaKeyFile c:\temp\writeltpa.key -password keypassword ]') wsadmin> AdminTask.exportLTPAKeys('[-ltpaKeyFile file:\temp\writeltpa.key -password keypassword ]')