This documentation is for WSO2 IoT Server 3.1.0. View the documentation for the latest release.
Page Comparison - Configuring WSO2 IoT Server with the IP or Hostname for iOS (v.37 vs v.38) - IoT Server 3.1.0 - WSO2 Documentation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Thie script automatically configures the IP and creates the required SSL certificates for the IP or hostname. This method is recommended because manually configuring the IP address includes many steps and if you miss out on a step you will run into errors.

    Info

    If you want to configure the steps manually, see Configuring the IP or hostname manually and if you want to change the default ports, see Changing the Default Ports.

    1. Navigate to the <IOTS_HOME>/scripts directory.
    2. Run the change-ip script.

      Tip

      Tip: The script will find and replace the IP address given in argument1 (localhost) with the IP address given as argument2 (10.10.10.14), in the necessary configuration files. 

      1. Change the current IP address of the IoT Server core, broker, and analytics profile.

      2. Enter the values for IoT Server core SSL certificate.

        Expand
        titleClick here for more information.

        Enter the requested information when prompted.

        Field
        Usage/Purpose
        CountryThe name of your country. Enter the two digit code for your country.
        StateThe state your organization is at.
        LocationThe city your organization is located at.

        Organization

        The name of your organization. For this scenario, we entered wso2.

        Organization UnitDefined the Team ID as the organization unit.

        Email

        The email is used to identify the existing users. For this scenario, we entered chris@wso2.com as the email.

        Commonname

        Fully qualified domain name of your server.

  2. Navigate to the <IOTS_HOME>/ios-configurator directory.

    Info

    You will not have this directory if you did not follow the steps given in Installing iOS Features via the P2 Repository.

  3. To configure WSO2 IoT Server with the IP, run the ios.sh script with the IP addresses as arguments. 

    Note

    This part of the script creates a key pair, generates a signature, and signs the key using the signature. Next, you will be prompted for an IP address. 

    Info

    The script will find and replace the IP address given in argument1 (localhost) with the IP address given as argument2 (10.10.10.14), in the necessary configuration files.

    Code Block
    ./ios.sh

...