# Error:No connection to OpenVidu Server. This may be a certificate error at https://localhost.4443

**URL:** <https://openvidu.discourse.group/t/error-no-connection-to-openvidu-server-this-may-be-a-certificate-error-at-https-localhost-4443/1451>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [July 13, 2020, 6:10am UTC](https://openvidu.discourse.group/t/error-no-connection-to-openvidu-server-this-may-be-a-certificate-error-at-https-localhost-4443/1451 "2020-07-13T06:10:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raj\_kund](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/raj_kund/32/732_2.png) [@raj\_kund](https://openvidu.discourse.group/u/raj_kund)\
**Post date:** [July 13, 2020, 6:10am UTC](https://openvidu.discourse.group/t/error-no-connection-to-openvidu-server-this-may-be-a-certificate-error-at-https-localhost-4443/1451/1 "2020-07-13T06:10:53Z")

</div>

I’m trying to implement Openvidu insecure-js in a client side application for which I followed this [tutorial](https://docs.openvidu.io/en/2.15.0/tutorials/openvidu-insecure-js/). I have taken the code from above tutorial github repo and made some changes to work with my client.

I’m running the OpenVidu Server in my localhost and also making use of Docker to keep the service up.In my client side application code I pointed my OPENVIDU\_SERVER\_URL to localhost to get the token. I’m facing an issue with certificate when I click on Join. Do i need to do anything else to make this work on a **custom url** other than localhost.

**custom url** (my orgurl)-[https://myorgurl.com](https://myorgurl.com)

**I’m getting a alert like this:**  
myorgurl says  
No connection to OpenVidu Server. This may be a certificate error at localhost.4443  
Click Ok to navigate and accept it. If no certificate warning is shown, then check that your OpenVidu Server is up and running at localhost.4443

**When I click OK my page reloads again with new participant details.**

**My Console Logs**

‘OpenVidu’ initialized.  
openvidu-browser version: 2.15.0.  
No connection to OpenVidu Server. This may be a certificate error at localhost.4443  
Leaving Session (forced=false).  
You were not connected to the session undefined.  
Navigated to myorgurl

Do I need to use these commands to generate a ssl certificate to run on my custom url

_Generate a selfsigned certificate (run in your Docker console)_

`openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -subj '//CN=www.mydom.com\O=My Company LTD.\C=US' -keyout key.pem -out cert.pem`

_Run with SSL flag_

`http-server -S`

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [July 14, 2020, 8:44am UTC](https://openvidu.discourse.group/t/error-no-connection-to-openvidu-server-this-may-be-a-certificate-error-at-https-localhost-4443/1451/2 "2020-07-14T08:44:43Z")

</div>

If you want openvidu-server to work in a specific URL, then you must initialize it with the following property:

**`DOMAIN_OR_PUBLIC_IP=myorgurl`**

You can also set the public port to be used with: **`HTTPS_PORT=443`**
