## Using SSL certificates

### Steps to configure HTTPs access to Glasswall Halo APIs using SSL certificates

1. Copy your `.key` and `.crt` files to the home directory of the virtual machine.

2. Run the `configure_tls.sh` script from the same directory, providing the path to the private key, certificate, and domain name:

   ```bash  
   bash configure_tls.sh private_key_path certificate_path domain_name  
   ```  
Example:

   ```bash  
   bash configure_tls.sh my-key.key my-cert.crt mydomain.com  
   ```  
3. If prompted to overwrite existing TLS secrets, type `y`.

4. The script will finish with the message: *TLS certificates configured for Synchronous API and Portal*.

* * *

<!-- markdownlint-disable MD033 -->
<div class="text--center margin-top--lg">
  <a href="/halo/aws-ec2-step-4" class="button button--primary">
    Proceed to Step 4 →
  </a>
</div>
<!-- markdownlint-enable MD033 -->