Store credentials


Overview

In a keyring file, you can store credentials for URLs that require authentication, such as repositories, proxy servers, and response files. These keyring files are used when running silent installation scripts to access password protected servers. When you use a keyring file, you still must list repository and proxy server URLs in your response file preferences. A keyring file does not make those preferences unnecessary.

If you are storing credentials for a response file on a server, you do not need to configure the URL in the Preferences before creating a keyring file.

Installation Manager uses the Eclipse infrastructure to save credentials to a keyring file. When you use the -keyring file -password password argument, Eclipse creates a keyring file if a keyring file does not exist. If you are using an existing keyring file, the new credentials are added and the previous credentials are not overwritten.

You must create a keyring that only you can access when saving credentials using the Save Password option for a shared instance of Installation Manager. If you do not specify your own keyring, other users can use your saved credentials. Create a keyring using the -keyring and -password options with IBMIM, imcl or imutilsc saveCredential.

Multiple users can use the same instance of Installation Manager in group mode or in administrator mode. Some repositories might require credentials. When you use the Save Password option without specifying a keyring that only you can access, other users can use your credentials to access the repository.

If you do not save your credentials, you are prompted to enter your credentials each time you access the repository.

For information about the input responseFile and the -keyring file -password password command-line arguments, see Installation Manager command-line arguments . For additional information about keyring files, see the Eclipse workbench User's Guide .


Store credentials in a keyring file

  1. From the command line, open the tools directory in the directory where you installed Installation Manager. See Locating the tools directory for more information about the tools directory.

  2. Run the following command:
    imutilsc saveCredential   
     -url address 
     -userName user_name -userPassword password 
     -keyring keyring_file [ -password password ]  
     [ -proxyHost proxy_host -proxyPort proxy_port
      [ -proxyUsername proxy_user_name 
        -proxyUserPassword proxy_user_password ]
       [ -useSocks ] ]   
     [ -verbose ] 

    Include quotation marks around filepaths that have spaces. The keyring file is saved to the specified location.

  3. Repeat to store the credentials for multiple URLs in one keyring file.


Results

Your credentials are saved in the keyring file that you specified with -keyring file.


What to do next

Create a response file that designates the proxy server and repository URLs in the Preferences.

+

Search Tips   |   Advanced Search