> ## 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.

# Configure Tomcat and test the server

> Configure Tomcat's server.xml for TLS using HSM-backed keys and verify the setup.

Tomcat configuration is stored in `Tomcat_HOME/conf/server.xml`. The following code shows an example Connector configuration:

```javascript expandable lines wrap title="Javascript" theme={null}
    <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
               maxThreads="150" SSLEnabled="true">
        <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
        <SSLHostConfig>
            <Certificate certificateKeystoreFile=""
             certificateKeystoreType="PKCS11"
             certificateKeystoreProvider="SunPKCS11-Futurex"
             certificateKeyAlias="tomcatdemo1"
             certificateKeystorePassword="safest"
             type="EC" />
        </SSLHostConfig>
    </Connector>
```

## Test the Tomcat server

Perform the following steps to test the Tomcat server:

<Steps>
  <Step>
    Start up the Tomcat server: `Tomcat_home\bin\startup.exe`
  </Step>

  <Step>
    Open a web browser and go to [**https://localhost:8443**](https://localhost:8443).
  </Step>

  <Step>
    Select the security icon to the left of the URL.

    <Check>
      The certificate details for Issuer and Subject should show that Tomcat is using your certificates.
    </Check>
  </Step>
</Steps>
