install ssl
-
How can I install ssl on laragon and use my local url as "https://localhost:8000"? @leokhoa @condemned @codebyray
-
@Muhammad-Yousaf Just use Laragon 3.3+:
https://forum.laragon.org/topic/1028/laragon-3-3-released-automated-ssl-certificates-auto-detect-generate-and-add-to-trust-store
-
I have updated my laragon version. but still its not working for me . You can see in the attachment. It still starts as "http;//localhost:8000" @leokhoa
-
if you want to use https://localhost
you can edit this file
C:\laragon\etc\apache2\sites-enabled\00-default.confthen add virtual host to detect port 443 (ssl)
example:<VirtualHost default:443>
<Directory "C:/laragon/www/">
AllowOverride All
Require all granted
</Directory>SSLEngine on SSLCertificateFile C:/laragon/etc/ssl/laragon.crt SSLCertificateKeyFile C:/laragon/etc/ssl/laragon.key
</VirtualHost>
the setting above might need to be adjusted to your setup.
But not sure if you want https on port 8000, maybe you can change the port to 8000 for ssl and possibly require more adjustment on another ssl setting.
-
@Muhammad-Yousaf : Why did you use
php artisan serve
? It will not work.From the image, your Apache still served on port
443
, just change the HTTPS port in Menu > Ports & Services to8000
,Then in your browser, you can access: https://localhost
for your project, you should browser:
https://allsocial.test
-
@mdennisa said
Actually I have to use facebook oauth api to login the users. but every time i make a call they send an error "Insecure login blocked" this is due to i'm sending the request from "HTTP" and not "HTTPS". That is the reason I have to change my url from "http://localhost" to "https://localhost"
-
I 've don the steps
but still there are some problems and it is not working properly.
-
@Muhammad-Yousaf : Chrome may cache wrong cert. Just try another browser.
If it doesn't work, try Menu > Apache > SSL > Add to Trust Store
-
Now it is also giving me this ERROR . The httpd-ssl conf file is as
-
@leokhoa @mdennisa
Thanks alot you guys. finally I have done it. Actually I was using laragon in really old fashion way like wamp or xammp by running ('PHP artisan serve') but in the en finally i get it. Laragon is really cooool!!!!!!!!!!!
-
@Muhammad-Yousaf : I am so glad to hear you sorted it out!
Yes, you'll find no system is easy to like Laragon - especially the SSL feature : )
Cheers!
-
@leokhoa but i have done nothing else except replace the files from ssl directory and still nothing. what can i do to make it work? i even restarted the pc and apache but no success. this after i send it to trusted store. i have letsencrypt wildcard keys.