# Custom SSL certificates for https requests

A call recording request looks something like the following:

**`http`**`://<Asterisk IP>:`**`8077`**`/get_conversation_recording?id=1608120945.929&from=89221234567&to=101`

To enable receiving records via https, you need to configure this function in the admin area on the page:

`http://<Asterisk IP>:8077/config/module`

<figure><img src="https://1054546226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-rzZJr51tgvX7eVK8M%2Fuploads%2FqcpSGDUgQHqXqxVRruX2%2FhttpsPort.jpg?alt=media&#x26;token=ae865952-cdf3-4493-bc48-3ef9220ab449" alt=""><figcaption></figcaption></figure>

1. You need to enable the "Use https port" function.&#x20;
2. The default port is 8078 (can be changed). For records to be accessible from outside the network, port 8078 must be open to Asterisk.&#x20;
3. Add the path to the certificate and key. These can usually be found at /etc/asterisk/keys/ You need the addresses to the files .pem and .key \
   The easiest way to get a certificate is through [letsencrypt](https://letsencrypt.org/) service.&#x20;
4. Save the settings.

The new record link will look like this:

`https://<Asterisk IP>:8078/get_conversation_recording?id=1608120945.929&from=89221234567&to=101`

{% hint style="warning" %}
To retrieve new link entries from an external network, port 8078 must be open on the router.
{% endhint %}
