Configuring proxy server support for the featureManager command in Liberty

You can access the Référentiel Liberty using a proxy server.

Avant de commencer

Ensure that you have created the required directory structure. If the etc directory is not found in the Liberty installation directory, then you must create it.
Pour accéder au référentiel IBM® WebSphere Liberty avec un accès Internet restreint ou via un pare-feu, assurez-vous d'avoir accès aux hôtes et ports suivants :
  • public.dhe.ibm.com sur le port 443
  • asset-websphere.ibm.com sur le port 443

Pourquoi et quand exécuter cette tâche

You can run the featureManager command to connect to the Référentiel Liberty through a user-specified proxy server.

Remarque :
  • The featureManager command only supports proxy servers with HTTP/HTTPS protocols.
  • The proxy server is only supported for the install and find options for the featureManager command.

Both the featureManager command and the installUtility command use the same configuration properties file, repositories.properties. The proxy settings are shared, but the repository settings are only used by the installUtility command. Using the installUtility command is recommended over the featureManager command because it enables you to work with more asset types and from multiple repositories; for more information see Configuration de référentiels et de paramètres de proxy pour la commande installUtility.

To configure proxy server support for the featureManager command, complete the following steps.

Procédure

  1. In the <Liberty_installation_dir>/etc directory, create an ASCII properties file, and name it repositories.properties.
  2. In the repositories.properties file, specify the following properties with the proxy server configurations:
    1. Specify the proxy server host name with no protocol information.
      proxyHost=proxy.xyz.com
    2. Indiquez le numéro de port du serveur proxy :
      proxyPort=8080
    3. Indiquez le nom d'utilisateur et le mot de passe chiffré du serveur proxy. Le mot de passe du serveur proxy doit être chiffré à l'aide de la commande securityUtility qui se trouve dans le répertoire <Liberty_installation_dir>/bin/.

      Pour plus d'informations sur les options de codage, voir : Commande securityUtility.

      Si le serveur proxy ne requiert pas d'authentification, les propriétés proxyUser et proxyUserPassword ne sont pas obligatoires.
      proxyUser=user
      proxyUserPassword={aes}Ly0wJyYPKDs=
  3. Sauvegardez le fichier repositories.properties.

Que faire ensuite

Exécutez les commandes featureManager install name ou featureManager find searchString --viewInfo pour installer interroger les fonctions Liberty applicables depuis le Référentiel Liberty via le serveur proxy spécifié. Pour plus d'informations, voir Commande featureManager.

Icône indiquant le type de rubrique Rubrique Tâche

Nom du fichier : twlp_featuremanager_proxy.html