Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Use properties files to manage system configuration > Manage specific configuration objects using properties files > Work with security properties files


Retrive signer certificates using SSL properties files

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

Determine whether to change your SSL configuration.

Start wsadmin.sh.

To start wsadmin using the Jython language, run...

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

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

Actions for SSL properties. We 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 applyConfigProperties.

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 the system and make any required changes to properties.

  2. Run applyConfigProperties.

    Run applyConfigProperties 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

We 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.
Extract properties files using wsadmin.sh


Related


Properties file syntax
PropertiesBasedConfiguration command group using wsadmin.sh

+

Search Tips   |   Advanced Search