K
K
koshelevatamila47412022-01-06 10:15:49
linux
koshelevatamila4741, 2022-01-06 10:15:49

How to configure HTTPS(local ip address where moodle is running)?

This instruction doesn't work: https://www.digitalocean.com/community/tutorials/h...
This one too: https://kifarunix.com/create-locally-trusted-ssl-c...
Somehow after command input

sudo sed -i 's#/etc/ssl/certs/ssl-cert-snakeoil.pem#/home/user/192.168.0.100+4.pem#; s#/etc/ssl/private/ssl-cert-snakeoil.key#/home/user/192.168.0.100+4-key.pem#' /etc/apache2/sites-available/default-ssl.conf

And
grep -E "SSLCertificateFile|SSLCertificateKeyFile" /etc/apache2/sites-available/default-ssl.conf

The names of the certificates do not change.
Let's encrypt was advised, but you can't use the IP address there, I don't have a domain name. 1.5 hours left to add https please help.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
ky0, 2022-01-06
@ky0

Less mindlessly rely on instructions. And what will happen in an hour and a half, by the way?

A
Alexander Karabanov, 2022-01-06
@karabanov

You can register a free domain on freenom.com and get a Let's encrypt certificate.
In any case, a self-signed certificate will not be trusted, so why waste time on it.
You can use mkcert to issue self-signed certificates

A
AVKor, 2022-01-06
@AVKor

For Debian (easiest using "Easier Alternative for STEP 2").

A
Alexander Falaleev, 2022-01-08
@suffix_ixbt

A certificate for IP can be purchased:
https://high-cloud.ru/gogetssl/gogetssl-public-ip/
I use it myself:
https://5.101.180.206:8443/#/
Look at the browser data about the certificate!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question