Retrieving signer certificates using SSL properties files

You can use properties files to retrieve Secure Sockets Layer (SSL) signer certificates.

Before you begin

Determine whether you want to change your SSL configuration.

Start the wsadmin scripting tool. To start wsadmin using the Jython language, run the wsadmin -lang Jython command from the bin directory of the server profile.

About this task

Using a properties file, you can set SSL properties and retrieve SSL signer certificates from a port.

Run the applyConfigProperties command using wsadmin to apply SSL properties and run the retrieveSignerFromPort command.

Table 1. Actions for SSL properties. You can run the retrieveSignerFromPort command .
Action Procedure
create Not applicable
modify Not applicable
delete Not applicable
create Property Not applicable
delete Property Not applicable
retrieve signer 1. Create a properties file that specifies CreateDeleteCommandProperties=true, commandName=retrieveSignerFromPort, and SSL property values such as port number, certificate alias, and key store name.

2. Run the applyConfigProperties command.

Optionally, you can use interactive mode with the commands:

AdminTask.command_name('-interactive')

Procedure

  1. Create a properties file that specifies the retrieveSignerFromPort command and SSL property values.

    The following properties file specifies CreateDeleteCommandProperties=true, commandName=retrieveSignerFromPort, and SSL property values such as port number, certificate alias, and key store name:

    #
    # Header
    #
    CreateDeleteCommandProperties=true
    #SKIP=true
    commandName=retrieveSignerFromPort
    #
    
    #
    #Properties
    #
    port=1234 #Integer,required
    keyStoreScope=null #String
    sslConfigName=null #String
    host=myHost #String,required
    certificateAlias=certificateAlias #String,required
    keyStoreName=CellDefaultTrustStore #String,required
    sslConfigScopeName=null 
    #
    

    If needed, modify the environment section to match your system and make any required changes to properties.

  2. Run the applyConfigProperties command.

    Running the applyConfigProperties command applies the properties file to the configuration. In this Jython example, the optional -reportFileName parameter produces a report named report.txt:

    AdminTask.applyConfigProperties(['-propertiesFileName myObjectType.props -reportFileName report.txt '])

Results

You can use the properties file to retrieve signer certificates and manage the SSL properties.

What to do next

If you changed SSL properties, save the changes to your configuration.




In this information ...


IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic Task topic    

Terms of Use | Feedback

Last updatedLast updated: Sep 19, 2011 7:16:32 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=matt&product=was-express-iseries&topic=txml_config_prop_sec_ssl_retrieve
File name: txml_config_prop_sec_ssl_retrieve.html