Create self-signed certificates using scripting

Use the Jython or Jacl scripting language to create self-signed certificates with wsadmin.

Before starting this task, wsadmin must be running. See the Start wsadmin article for more information.

We can create self-signed certificates using the scripting and AdminTask. We can run the commands in interactive or batch mode.

Interactive mode provides a way to discover the flags that we need to run the task in batch mode.

Certificates reside inside of key stores. To run the commands, you will need the name of the key store to be supplied.

Use the listKeyStore command of AdminTask to get a list of key stores. If we need a new key store, use the createKeyStore command of AdminTask.

To create a personal key store, use the following examples:


Commands for AdminTask