+

Search Tips   |   Advanced Search

Automating SSL configurations using scripting

SSL configuration is needed for the product to perform SSL connections with other servers. We can configure SSL through the administrative console. But AdminTask provides an automated way to create an SSL configuration.

The wsadmin tool must be running. See topic about starting the wsadmin scripting client.

AdminTask can be used in interactive mode and batch mode. For automation, use the batch mode options. AdminTask batch mode can be called in a Jython script. Interactive mode steps through all parameters the task needs, required ones are marked with an asterisk (*). Before the interactive task runs the task, it echoes the batch mode syntax of the task to the screen. The syntax can help you write batch mode scripts.

An SSL configuration requires the following attributes:

To automate the creation of an SSL configuration, we might need to create some of the attribute values, such as the keystore, truststore, key manager, and trust managers.


Tasks

  • Start the wsadmin scripting client
  • Commands for the AdminTask object