Using securetool

This section describes how to use securetool to install and uninstall Enterprise Security, and how to upgrade the middleware using a sample response file. The response file includes all the argument/value pairs that are required to perform these tasks.

Sample response file

The following lines in a response file allow you to install and configure a new Enterprise Security installation, assuming there are locally installed versions of Adaptive Server and EAServer that use the default port numbers and path names:

rootorg_name=Sybase.com
enkfile=C:\Sybase\Security\.enk
output_enkfile=C:\Sybase\Security\.enk
security_dir=C:\Sybase\Security
easerver_dir=C:\Sybase\EAServer
shared_dir=C:\Sybase\Security\shared_libs
rootrog_dn=dc\=sybase.com
dns_domain=sybase.com

To use this response file with the following procedures, create a file called configure_security.rsp that contains the preceding lines.

StepsManually installing Enterprise Security

To manually install Enterprise Security using configure_security.rsp, run the following commands.

  1. To generate an encryption key file:

    securetool genenk @configure_security.rsp
    
  2. To create a new ACDB:

    securetool createdb @configure_security.rsp
    
  3. To deploy the Enterprise Security middleware into EAServer:

    securetool deploymw @configure_security.rsp
    
  4. To deploy Enterprise Security Manager into EAServer:

    securetool deploysm @configure_security.rsp
    

StepsUpgrading the Enterprise Security middleware

To upgrade the middleware using configure_security.rsp, run:

  1. securetool deploymw @configure_security.rsp
    

StepsUninstalling Enterprise Security

To manually uninstall the software, perform the following tasks using configure_security.rsp.

  1. To remove Enterprise Security Manager from EAServer:

    securetool removesm @configure_security.rsp
    
  2. To remove the middleware from EAServer:

    securetool removemw @configure_security.rsp
    

    This is necessary because typically, EAServer holds a database connection open.

  3. To remove the database:

    securetool removedb @configure_security.rsp
    

    Before you remove the database, verify that there are no processes with database connections.

  4. Manually delete the encryption key file.

  5. Delete the Security directory.