> ## Documentation Index
> Fetch the complete documentation index at: https://docs.futurex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect to the EJBCA environment

> Configuration steps to connect the EJBCA environment to CryptoHub using FXPKCS11.

To connect the EJBCA environment to CryptoHub through the FXPKCS11 library, you must configure various files.  Perform the following steps:

<Steps>
  <Step>
    Locate the `web.properties` file in the EJBCA path (such as `/opt/ejbca-install/ejbca_ce_6_15_2_6/conf/web.properties`) and open it in a text editor.
  </Step>

  <Step>
    Add the following new lines:

    ```text expandable lines wrap title="Text" theme={null}
    cryptotoken.p11.lib.115.name=Futurex
    cryptotoken.p11.lib.115.file=/futurex/libfxpkcs11.so
    ```
  </Step>

  <Step>
    Save the file and run the following commands to apply these changes, rebuild the EJBCA environment.
  </Step>

  <Step>
    Locate the `ejbca-install/` folder using the command **cd** as follows:

    ```shell expandable lines wrap title="Shell" theme={null}
    cd /opt/ejbca-install/
    ```
  </Step>

  <Step>
    Run the following **deployear** command:

    ```shell expandable lines wrap title="Shell" theme={null}
    ant -f ejbca_ce_6_15_2_6/build.xml -q clean deployear
    ```
  </Step>

  <Step>
    Locate the `ejbca-toolbox/` folder.

    ```shell expandable lines wrap title="Shell" theme={null}
    cd /opt/ejbca-install/ejbca_ce_6_15_2_6/
    ```
  </Step>

  <Step>
    Run the following **clientToolBox** command:

    ```shell expandable lines wrap title="Shell" theme={null}
    ant clientToolBox
    ```
  </Step>

  <Step>
    Start the web service with the following command:

    ```shell expandable lines wrap title="Shell" theme={null}
    java -D[Standalone] -server -Xmx2048m -Dorg.jboss.boot.log.file=/opt/wildfly/standalone/log/server.log -Dlogging.configuration=file:/opt/wildfly/standalone/configuration/logging.properties -jar /opt/wildfly/jboss-modules.jar -mp /opt/wildfly/modules org.jboss.as.standalone -Djboss.home.dir=/opt/wildfly -Djboss.server.base.dir=/opt/wildfly/standalone -c standalone.xml -b 0.0.0.0 &
    ```

    <Note>
      The number depends on the previous libraries installed.
    </Note>
  </Step>
</Steps>
