# WebSocket error when HTTPs is used

**URL:** <https://community.neo4j.com/t/websocket-error-when-https-is-used/73465>\
**Category:** Browser\
**Created:** [April 11, 2025, 3:51pm UTC](https://community.neo4j.com/t/websocket-error-when-https-is-used/73465 "2025-04-11T15:51:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivek.m](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/vivek.m/32/33839_2.png) [@vivek.m](https://community.neo4j.com/u/vivek.m)\
**Post date:** [April 11, 2025, 3:51pm UTC](https://community.neo4j.com/t/websocket-error-when-https-is-used/73465/1 "2025-04-11T15:51:37Z")

</div>

Hey! I've been using neo4j browser without https for a while using the link http::7474/browser

but today i attached a SSL certificate against it and made it https so now i'm accessing the website using [https://coolname.domain.in/browser](https://coolname.domain.in/browser)

i'm able to see the landing page but im unable to connect to the database

```auto
WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use. WebSocket `readyState` is: 3

```

this is the error that is being thrown! how do i overcome this challenge. Help is appreciated.

```auto

```

---

<div class="post-metadata">

**Author:** ![jon.giffard](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jon.giffard/32/30835_2.png) [@jon.giffard](https://community.neo4j.com/u/jon.giffard)\
**Post date:** [April 11, 2025, 3:58pm UTC](https://community.neo4j.com/t/websocket-error-when-https-is-used/73465/2 "2025-04-11T15:58:00Z")

</div>

At first glance it looks like there is a cert issue with bolt or you're trying to connect using bolt+s to an un-encrypted bolt session. You can try connecting to neo4j using bolt:// rather than bolt+s://

I wrote a guide for using the Query API with HTTPS but it also covers the scenario you have.

> **[A guide to using SSL with Neo4j Query API](https://www.pm50plus.com/2024/11/08/ssl-query-api.html)**
>
> How to configure Neo4j for SSL using Lets Encrypt

Take a look and let us know how you get on.
