SSL certificate problem

Hi, i’m on trouble with my peertube instance: www.peertube.it
i get a message that the certificate no longer work and i don’t know to solve the problem

i have ubuntu and docker on the server
any help?

Hello

It seems that the certificate you’re using is not linked to the dns name of your server but to ad.trafiek.default. So, that’s certainly a self signed certificate.

Did you request a certificate from a authorization company or from Let’s Encrypt ?

i have to choose the best way it is the free costless certificate, there is a way to get it free forever?

In alternative witch one i can choose to spend less?

Via Let’sEncrypt (and up to now), this is free. All you need is a certbot on the webserver to exchange information with Let’sEncrypt server to validate that your host is the destination of you dns name. (The simplest form to do this involves having your server listening ot port HTTP/80)

i have to choose the best way so if it is free i have to choose that Let’sEncrypt service, now the problem is how to get that work? Can you help me?

Have a look here

how i check if i have nginx installed?

otherwise if i buy a certificate? how can i install on the server manually ?

Did you follow the peertube’s installation procedure? Using a letsencrypt certificate is part of it.

sorry the first installation was made by one other friend, and he now can’t do any other work for free, so i don’t have money to pay a technician and i try to do by my self with your support… i hope someone help me.

If i have a certificate released by authority how can i implement it on peertube installation?

This is a scenario we don’t provide documentation for since it is rarely used, but otherwise any documentation relative to Nginx will be of help to you: http://nginx.org/en/docs/http/configuring_https_servers.html

how can i verify if i have nginx operating in my system ?

because if i try to get some answer from nginx i get that error

root@Ubuntu-1804-bionic-64-minimal ~ # nginx -V
-bash: nginx: command not found

so i have to install it and why if that is needed during first install i don’t have it ?
it is possible system work with something else instead of nginx?

To check if nginx is installed, on Ubuntu try

apt list nginx

There should result to a line beginning with « nginx » and ending with « [Installed] » (or similar Italians word)

great that’s the result

root @ Ubuntu-1804-bionic-64-minimal ~ # apt list nginx

Listing… Done

nginx/bionic-security,bionic-security,bionic-updates,bionic-updates,bionic-updates,bionic-updates,bionic-security,bionic-security 1.14.0-0ubuntu1.7 all

N: There is 1 additional version. Please use the ‹ -a › switch to see it

i have check same way the certbot instance too

root @ Ubuntu-1804-bionic-64-minimal ~ # apt list certbot

Listing… Done

certbot/bionic-updates,bionic-updates,bionic-updates,bionic-updates 0.27.0-1~ubuntu18.04.2 all

N: There is 1 additional version. Please use the ‹ -a › switch to see it

so nginx exist i can try with the let’s encrypt procedure ?

No, it seems that nginx is not installed.

What about apt list apache ?

apt list apache

Listing… Done

nothing more, if i try

apt list apache2

Listing… Done

apache2/bionic-security,bionic-updates,bionic-updates,bionic-security 2.4.29-1ubuntu4.14 amd64

N: There is 1 additional version. Please use the ‹ -a › switch to see it

oh, it seems that Apache was not installed too :confused:

what does both following command result in ?

systemctl status apache2

and

systemctl status nginx

root @ Ubuntu-1804-bionic-64-minimal ~ # systemctl status apache2

Unit apache2.service could not be found.

root @ Ubuntu-1804-bionic-64-minimal ~ # systemctl status nginx

Unit nginx.service could not be found.

root @ Ubuntu-1804-bionic-64-minimal ~ #

something strange here baby ^_^!

i try with systemctl status docker

● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2020-11-23 15:23:17 CET; 47min ago
Docs: https://docs.docker.com
Main PID: 1122 (dockerd)
Tasks: 23
CGroup: /system.slice/docker.service
└─1122 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

Nov 23 15:23:07 Ubuntu-1804-bionic-64-minimal dockerd[1122]: time=« 2020-11-23T15:23:07.125964482+01:00 » level=warning msg=« Your kernel does not support swap memory limit »
Nov 23 15:23:07 Ubuntu-1804-bionic-64-minimal dockerd[1122]: time=« 2020-11-23T15:23:07.125993474+01:00 » level=warning msg=« Your kernel does not support cgroup rt period »
Nov 23 15:23:07 Ubuntu-1804-bionic-64-minimal dockerd[1122]: time=« 2020-11-23T15:23:07.126000751+01:00 » level=warning msg=« Your kernel does not support cgroup rt runtime »
Nov 23 15:23:07 Ubuntu-1804-bionic-64-minimal dockerd[1122]: time=« 2020-11-23T15:23:07.126123464+01:00 » level=info msg=« Loading containers: start. »
Nov 23 15:23:08 Ubuntu-1804-bionic-64-minimal dockerd[1122]: time=« 2020-11-23T15:23:08.347261783+01:00 » level=info msg="Default bridge (docker0) is assigned with an IP address 172
Nov 23 15:23:13 Ubuntu-1804-bionic-64-minimal dockerd[1122]: time=« 2020-11-23T15:23:13.897074848+01:00 » level=info msg=« Loading containers: done. »
Nov 23 15:23:16 Ubuntu-1804-bionic-64-minimal dockerd[1122]: time=« 2020-11-23T15:23:16.881394814+01:00 » level=info msg=« Docker daemon » commit=4484c46d9d graphdriver(s)=overlay2 ve
Nov 23 15:23:16 Ubuntu-1804-bionic-64-minimal dockerd[1122]: time=« 2020-11-23T15:23:16.881898953+01:00 » level=info msg=« Daemon has completed initialization »
Nov 23 15:23:17 Ubuntu-1804-bionic-64-minimal dockerd[1122]: time=« 2020-11-23T15:23:17.275094793+01:00 » level=info msg=« API listen on /var/run/docker.sock »
Nov 23 15:23:17 Ubuntu-1804-bionic-64-minimal systemd[1]: Started Docker Application Container Engine.

Oh, OK, you searched the web server on your host, not on the system in the docker, isn’t it ?

i don’t know docker at all, so i just search after root login password request, i have to go inside docker to made that search!

How can i access on the system in the docker?