简体   繁体   中英

Setting up SSL on raspberry pi

I have a raspberry pi with apache on it, and I would like to set up SSL on it.

Issues and what I have tried:

When I try to activate the SSL module and run the command: sudo a2enmod ssl and sudo a2enmod default-ssl I get command not found .

My second issue is that I cannot restart the apache webserver, I would run the command sudo /etc/init.d/apache2 restart and as a result I get apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details .

What am I doing wrong?

Any advice is greatly appreciated.

Thanks in advance

Do you have a default-ssl.conf file in [wherever-it-is]/mods-available/default-ssl.conf

sudo nano it into existence if not,

restarting the server, have you tried "sudo service apache2 restart" or replace "restart" with "reload"?

How do you normally access services on a Pi?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM