L
L
lekam2020-05-30 18:02:36
Apache HTTP Server
lekam, 2020-05-30 18:02:36

How to add an SSL certificate for a home server?

There is a site on a home server that is hidden behind Cloudflare. Everything works over HTTPS, certificates are issued by Cloudflare itself.
But there is an audio player on the site:

<audio >
  <source src="http://192.168.0.100:8000/audio" >
</audio>

Because of which the content of the site is considered insecure (because HTTP).
I'm trying to encrypt the source, for this I use SSL certificates issued by Cloudflare on my server, in the end my player looks like this:
<audio >
  <source src="https://192.168.0.100:8000/audio" >
</audio>

But the browser still considers this certificate invalid and the player does not start. On the server side, this is the error:
Failed to accept new client: SSL accept() error: error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown

What is the reason? Is it possible in principle to use SSL certificates from Cloudflare in this way? And if not, how do I get a valid certificate if my server is not directly related to my domain?
Audio is generated using Liquidsoap, which can create https sources.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2020-05-30
@lekam

The error is due to the fact that you are trying to connect via HTTPS on port 8000, where there is most likely no SSL.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question