SSL certificate error

I built openvidu using ubtun 20.04.
I am using selfsigned SSL certificate.

I created a webpage using apahce2 and connected to the openvidu server.

When you access the site opened with apache2 from the client, a guidance page appears saying that it is not a secure page.

If you click the Advanced button and move to the unsecure page,
No Connection to OpenVidu server. This may be a certificate error at “http://xxx.xxx.xxx.xxx:4443
Click OK to navigate and accept it. If no certificate warning is shown, then check thar your OpenVidu Server is up and running at “https://xxx.xxx.xxx.xxx:4443
A pop-up message appears, and when you click the OK button,
you will move to the https://xxx.xxx.xxx.xxx:4443/accept-certificate page,
and the GET /accept-certificate message will be printed.

I created a certificate with openssl, how can I avoid this error?