# License says "invalid"

### Problem:

Setting your license key in the dashboard doesn't work, resulting in a red message with the text "Invalid license key".

### Cause:

There are two common causes:

1. You have the wrong variant installed (e.g. WordPress instead of regular, or trying to update a regular version trial to an Agency version).
2. Your server can not contact the UXWizz license server due to outdated HTTPS certificates.

{% hint style="info" %}
If something doesn't work as expected, the quickest way to see what the problem is is to check your server's **error.log** file for more information.
{% endhint %}

### Solution:

For case #1 (wrong version) please contact support, and you will receive two files to replace in your UXWizz installation to force-request the correct version when checking the license.

#### For case #2: The requests to the license server are blocked.

This can happen for several reasons:

1. A firewall or security plugin on your server is blocking external requests.
2. The request fails because the HTTPS certificates list is outdated on your server.

{% hint style="warning" %}
Make sure there is no firewall blocking outgoing requests from your server to the UXWizz download server (allow requests to the **license-api.uxwizz.com domain)**
{% endhint %}

**The PHP ca-bundle.crt file might be outdated on your server**.&#x20;

More specifically, it might miss the "ISRG" certificate entry (which is used by Let's Encrypt that is used for the HTTPS certificate on the UXWizz license server).\
The ca-bundle used is specified in **php.ini** in the \[openssl] section:

![](https://2006615411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ltuu0c63_YY4iXfi5vJ%2Fuploads%2FQ6KqIRJUbyFe1x3lxXlv%2Fopen-ssl-certs.png?alt=media\&token=8099320e-141d-47ee-9efe-3002786e5c51)

If a path is set, you can try updating the certificates list file with a recent one available online: <https://curl.se/docs/caextract.html> ( **cacert.pem** )\
Here is the same one, but with the same file name as you need: <https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt>

{% hint style="warning" %}
You should backup the existing file **ca-bundle.crt** file before replacing.
{% endhint %}

\
You can also try to update the OS-level list of certificates (eg. **sudo update-ca-certificates** if you have an Ubuntu server).
