> For the complete documentation index, see [llms.txt](https://docs.sportradar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sportradar.com/uof/error-handling/error-catalogue/the-ssl-connection-could-not-be-established.md).

# The SSL connection could not be established

**Error Description**

Users are encountering the following error message when attempting to connect to the server. The error message indicates that there was a failure to establish a secure connection (SSL/TLS) between the client and server due to issues with the validity of the server's SSL certificate (likely due to issues with time validity (e.g., expiration) or certificate chain configuration).

```
The SSL connection could not be established: The remote certificate is invalid because of errors in the certificate chain: NotTimeValid
```

**Applies to**

UOF SDK - all versions

**Symptoms**

The above message is observed in the SDK execution logs.

**Resolution**

To resolve this issue, follow these steps:

1. **NotTimeValid**: This relates to the validity period of the SSL/TLS certificate used by the server. SSL/TLS certificates have a defined duration of validity, and this error occurs under the following conditions:
   * The certificate has not yet become valid (i.e., the current date is before the "valid from" date of the certificate).
   * The certificate has expired (i.e., the current date is after the "valid to" date of the certificate).
2. **Check the System Clock**: Ensure that the system clock on the client machine (where the error is occurring) is set to the correct current date and time. Incorrect system time can lead to certificate validation errors.
3. **Examine the Certificate**: Inspect the validity dates (valid from and valid to) of the server's SSL/TLS certificate. This can typically be done using a web browser or specialized tools that analyze SSL certificates.
4. **Renew the Certificate**: If the certificate has expired, the server administrator should renew the SSL/TLS certificate and deploy the new certificate on the server.
5. **Contact Server Administrator**: If you are not the server administrator, reach out to the responsible party and report the certificate validation issue. The server administrator may need to take action to renew or reconfigure the SSL/TLS certificate.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sportradar.com/uof/error-handling/error-catalogue/the-ssl-connection-could-not-be-established.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
