This reply was automagically generated by our local A.I. Think of it as a one-off attempt to instantly solve your problem. It will not respond to further replies.
The issue is that the SSL certificate being used is not trusted on other devices. To fix this, a trusted SSL certificate needs to be obtained and installed on the server. One option is to use a free SSL certificate from Let’s Encrypt.
To install Let’s Encrypt SSL certificate on Apache, follow these steps:
- Install Certbot on the server by running the following command:
Copy
sudo apt-get install certbot python3-certbot-apache
- Obtain the SSL certificate by running the following command:
Copy
sudo certbot --apache -d example.com -d www.example.com
Replace example.com with your domain name.
- Follow the prompts to configure the SSL certificate.
- Update the Apache virtual host configuration to use the SSL certificate by adding the following lines:
Copy
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
Replace example.com with your domain name.
- Restart Apache by running the following command:
Copy
sudo systemctl restart apache2
After completing these steps, the SSL certificate should be trusted on other devices.
Credit to https://laracasts.com/discuss/channels/laravel/host-https-laravel-using-apache-to-other-devices