How To Create a SSL Certificate (Nextcloud) 🔒

preview_player
Показать описание
The video showing how to create a self-signed SSL certificate

Commands:

1- Enable the module ssl
$ sudo a2enmod ssl

2- Create a directory to save both the certificate and the key
$ mkdir /etc/apache2/ssl

3- Now create the certificate and the key
$ sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/YOURFILENAME.key -out /etc/apache2/ssl/YOURFILENAME.crt

4- Now make the apache have the access to the key and the certificate

5- Paste those to lines
SSLCertificateFile /etc/apache2/ssl/YOURFILENAME.crt
SSLCertificateKeyFile /etc/apache2/ssl/YOURFILENAME.key

6- Restart your apache to apply the changes
$ service apache2 restart

7- To redirect the http to https
Angle brackets VirtualHost *:80 Angle brackets
ServerName nextcloud
Angle brackets /VirtualHost Angle brackets


Angle brackets VirtualHost *:443 Angle brackets

8- To read the certificate
$ openssl x509 -in CertificateFileName -noout -text
Рекомендации по теме
Комментарии
Автор

Seen a bunch of tutorials about, this is probably the most straightforward one. Thank you, I'll be trying this. I had already made myself a CA and signed my own certificate, but I had no idea where to put it. Further compounded that my nextcloud is running in a docker container. But I think I can figure it out from here and already have some good ideas on how to make this work. Thank you!

meowcula
Автор

Wish all the tutorials are like this. Very clear and explanatory.

ljwnow
Автор

Thank you finally got SSL working for my private cloud

vinodkrishnanradhakrishnan
Автор

great video, even though the audio wasn't amazing the closed captioning worked great..

spyghetti
Автор

hello..NextCloud does not have Domain, can open SSL for it .. thanks

thanhkhanhnguyen
Автор

I get the SSL error "SSL ERROR RECORD TOO LONG" at the end. The only difference vs you config is the listening port which is 8080 in my case. I still have not found a solution

giovannigio
Автор

How do you save the conf file??? What did you pressed to save it??

vasquezfamily
Автор

Great video & easy to follow. Thank you.
When I try to restart Apache2 it asks me for a password. I never set one, as you know. That has left me unable to run Apache2 & I am lost as to what to do next.
I’d be very grateful if you could point me to any help file? Thanks very much..

GGCQ
Автор

After I modified it and added the ssl cert and key. It works, and is a secure connection. However, now it always brings me to the default page, and am unable to reach NextCloud.

anonymousgamer
Автор

I woud invest in a very good microphone, other than that good tutorial!

johnjames_cowperthwaite
Автор

i dont get step 7, can you please explain? i keep getting "the connection for this site is not secure"

thereneramirez