Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,420 members, 7,958,242 topics. Date: Wednesday, 25 September 2024 at 11:12 AM |
Nairaland Forum / Science/Technology / Programming / How To Install Ssl On Lampp Or Xampp (beginners Friendly) (538 Views)
My PHP Code Run Locally On XAMPP But Showing Syntax Error Online / I Need Help With Xampp Server / Xampp Server User Please Come In And Assist (2) (3) (4)
(1) (Reply)
How To Install Ssl On Lampp Or Xampp (beginners Friendly) by silento(m): 3:10am On May 22, 2023 |
The web has evolved over the years , web development is becoming hard every day be a hard core linux user (ubuntu) user for years - few days i changed my laptop and boom i had to install some packages and get my new baby back to the game , been that my computer hasn't crashed for upto 4 years i have forgotten some of the basic tools and there name so i found myself for 30 minutes to hours trying to install enable ssl on my localhost it was funny but this could happen to anybody so i say make i drop this tutorial in case any day again i will just enter here and follow my own guide STEP 1 . Make sure you have installed xampp or lammp download a tool called "mkcert" i think it also available windows FOR UNBUNTU (DEBIAN) user - open terminal with "Ctrl+Alt+T" enter this command : sudo apt intsall mkcert STEP 2 . after download confirm that package was installed successfully run this command to generate CAROOT mkcert -install it will generate a caroot and install it for your firefox and chrome automatically the file will be located at "/home/{your computer name }/.local/share/mkcert" with the files there u can also import it into other devices u plan to test your website and web app with STEP 3 . create or navigate to any existing folder and open terminal there and type below command based on device connected to your laptop and localhost , for me i wanted the ssl to work for my localhost url , and also for my android device i use to do testing mkcert localhost 127.0.01 192.168.1.Bleep it generate two files xxxxxx.pem and xxxxxx-key.pem STEP 4 . to use it in lampp or xampp locate and edit this file /opt/lampp/etc/extra/httpd-ssl.conf find this lines in the file and edit 1. SSLCertificateFile "xxxxxx.pem" 2. SSLCertificateKeyFile "xxxxxx-key.pem" xxxxxx.pem is path to ur cert generated at step 3 in my case i put it in a folder /home/ssl/127.0.0.1+2.pem dont copy this na just to give u example once u are done doing that save and restart restart ur xampp/lampp and visit https://localhost below is my localhost with ssl
|
Re: How To Install Ssl On Lampp Or Xampp (beginners Friendly) by Blaze9: 10:43am On May 23, 2023 |
Nice work 👍👍 |
Re: How To Install Ssl On Lampp Or Xampp (beginners Friendly) by silento(m): 4:37am On May 29, 2023 |
Blaze9: Thanks |
(1) (Reply)
Why Bug Bounty Hunting Program Is Urgently Needed In Nigeria / Who Can Build an App And create a Website / Shopify Seems Easier Than Wordpress.
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 20 |