# SSL Verification Failed

If you’ve encountered the SSL: CERTIFICATE\_VERIFY\_FAILED error while using OpenAlgo on Windows, there’s good news. A user from the OpenAlgo community has shared a comprehensive solution that resolved this issue on their Windows system. Here’s a detailed guide on how to implement this solution.

**Understanding the Issue**

The SSL: CERTIFICATE\_VERIFY\_FAILED error usually indicates that the SSL certificate presented by the server cannot be verified by the client. This can happen due to several reasons, including outdated or missing root certificates on your system.

**Proposed Solution**

A user successfully resolved this issue by updating the root certificates on their Windows system. The solution involves using the certutil tool to update and install root certificates. Here are the detailed steps:

**1. Update Certificates Using Certutil**

First, you need to update the root certificates on your Windows system. Follow these steps using Command Prompt with administrative access:

1\. **Open Command Prompt with Admin Access**: Right-click on the Command Prompt icon and select “Run as administrator”.

<figure><img src="https://17901342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBwEhITzgv0O0fEGIIRN%2Fuploads%2FMjG8v3CmcbGHxuDZHnnU%2Fimage.png?alt=media&#x26;token=714276c4-1315-466f-b07b-a414ee7c87cf" alt=""><figcaption></figcaption></figure>

2\. **Generate Root Certificates File**: Run the following command to generate the root certificates file.

```bash
certutil -generateSSTFromWU roots.sst
```

\
3\. **Install Root Certificates**: Once the roots.sst file is generated, run the following command to install the certificates.

```bash
certutil -addstore -f root roots.sst
```

**2. Verify and Reinstall**

After updating the root certificates, you can verify if the issue is resolved by running your OpenAlgo application. Here’s an additional step-by-step verification process shared by the user:

1\. **Uninstall Existing Python Installation**: If you still face issues, uninstall the existing Python installation.

2\. **Reboot the Server**: Reboot your Windows system to ensure all changes take effect.

3\. **Install Latest Python Version**: Download and install the latest version of Python (e.g., python-3.12.4-amd64).

4\. **Run OpenAlgo Application**: Run your OpenAlgo application to verify if the SSL error is resolved.

By updating the root certificates using certutil and ensuring that your system has the latest Python installation, you can resolve the SSL: CERTIFICATE\_VERIFY\_FAILED error on Windows systems. This method has been tested and confirmed to work by couple of users in the OpenAlgo community.

For more details and context, you can refer to [this issue on GitHub](https://github.com/marketcalls/openalgo/issues/43).

If you’re encountering SSL-related errors on Windows, give these Command Prompt actions a try. Your feedback and experiences are valuable, so feel free to share them in the comments below. Happy coding with OpenAlgo!


---

# Agent Instructions: 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:

```
GET https://docs.openalgo.in/installation-guidelines/getting-started/windows-installation/ssl-verification-failed.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
