How to generate secure SSL certificate for localhost in XAMPP and Enable HTTPS for localhost
ฝัง
- เผยแพร่เมื่อ 20 ก.ย. 2024
- In this video i will show you that how to generate secure SSL certificate for localhost in XAMPP and enable https for localhost.
Download cert files:
github.com/pro...
Code to add in "httpd-xamp.conf" file
learnpainless....
About #ProlongServices, initially I built this website to do the paid task (like #SoftwareDevelopment, #WebDevelopment, etc.), but after that, I started to teach other users, so I can help them grow. And I will make videos on other topics as well.
Thank you for watching it.
---------------------------------------------------------------------
Some other videos:
AppBar underneath main content - Custom appbar in flutter
• AppBar underneath main...
How to Fetch preview of link in flutter
• How to Fetch preview o...
How to greyscale a widget in flutter. (make any flutter widget look like disabled state)
• How to grayscale a wid...
How to make Custom Dialog in flutter (Replace your boring AlertDialog with Attractive custom dialog)
• How to make Custom Dia...
---------------------------------------------------------------------
Social Links:
TH-cam: / @learnpainless
Facebook: / prolongservices
Twitter: / prolongservices
LinkedIn : / prolong-services
Github: github.com/pro...
Instagram: / prolong.services
Website: prolongservice...
Reddit: / prolongservices
Tumblr: www.tumblr.com...
Telegram Channel: t.me/ProlongSe...
---------------------------------------------------------------------
Contact Info:
Business Email: sales@prolongservices.com
Support Email: support@prolongservices.com
Whatsapp: +91 9501784647
Buy Me a Coffee
ko-fi.com/prol...
Thank you very much ! Your video is very clear and straightforward. Only one thing that caused my XAMPP to refuse restarting is the ServiceAlias tag from the .conf file. Only after I removed it - my server restarted successfully and my website is now HTTPS ! Thanks again ! 🙂
Yes it's actually ServerAlias the conf in the description is wrong also struggled with that one
Oh sorry thats my mistake, i ll add latest working conf file
Where is that ServerAlias .config file?
@@rabiariaz5320 It's a ServerAlias tag inside the config files from the /xampp/apache/conf/extra directory. This is not a file name.
You saved my life.
It's not actually secure. The browser says it's not secure and doesn't allow me to open the page unless I click Continue, which can be a really big problem.
Thanks bro this helped me for my assignment for doing HTTP basic auth over SSL.
This is beautifully done!!! Thank you very much!!!👌
I subbed and liked it before even watching lol
Very clear tutorial many thanks brother couldn't have done it without you :)
Thank u so much, plz share with your friends as well 🤗🤗
Very useful! Thank you so much for the video!!
Glad it was helpful!
Thank your for this video.... Money save.. love you bro.. 2000❤
Thank you very much, the most straightforward and precise video for the topic
Thank you for a great video. Tried your solution and all works as a charm. many thanks!
thank you so much worked in first attempt
This is the best tutorial for this topic! Specially since I have watched and followed different methods from other tutorials, this one is the easiest and most accurate!!! THANK YOU VERY MUCH!!! :) :)
It's already working on my PC, although I am unsure why the facebook instant app seems to be not working.
Please help....
what problem are you facing?
finally, I found a guy who can help me. Thank you so much!!
22:56:58 [Apache] Error: Apache shutdown unexpectedly.
22:56:58 [Apache] This may be due to a blocked port, missing dependencies,
22:56:58 [Apache] improper privileges, a crash, or a shutdown by another method.
22:56:58 [Apache] Press the Logs button to view error logs and check
22:56:58 [Apache] the Windows Event Viewer for more clues
22:56:58 [Apache] If you need more help, copy and post this
22:56:58 [Apache] entire log window on the forums
Error: Apache shutdown unexpectedly.
11:32:55 AM [Apache] This may be due to a blocked port, missing dependencies,
11:32:55 AM [Apache] improper privileges, a crash, or a shutdown by another method.
11:32:55 AM [Apache] Press the Logs button to view error logs and check
11:32:55 AM [Apache] the Windows Event Viewer for more clues
11:32:55 AM [Apache] If you need more help, copy and post this
11:32:55 AM [Apache] entire log window on the forums
getting this error
same condition here bro. We need help!
How it get solved?
simply just go to xampp folder in your file explorer open mysql folder change data name into data old save it... and then after , create a new folder name it as data and save it... now just in mysql folder again and open backup folder and copy all backup data form there and paste it on newly created data folder..
now just go to data old direction and just copy your data only mysql and wordpress data (localhost) and ib1data file too..and paste it on newly created data folder...
now run again mysql and apache it will work again.
@@AjGaming-vx2pc Did not work
very clear.. many thanks!
did it work?
Question1: How to create server.key? Because I've to provide server key to third party to issue the SSL for xampp.
Question2: After apply SSL certificate, when I tried to open my website on another computer on the same network with xampp iP and path, the SSL will not work. Any idea how we can access the website from other computer and still SSL works.
Answer would be appreciated.
STILL WORKS! awesome for the guides
thanks wangu. you helped a lot
You are welcome, please keep supporting
Live long Indians! you guys are the best
I almost search documents, nothing working, now it working fine for me, Thank you so much for support...
Sir, I can't start Apache after I stopped it. I already use your file but still don't want to start again
very helpful , detailed explaination
Glad it was helpful!
ohh godd!!! it worked thank you soo much!!!
Thank you man you saved us
someone tried to sell me this ssl for local machine 😂
Thanks for this tutorial this is the best!
Thank you so much, i m making videos on other xampp related issues and tutorials
you saved my day also my friend! Thanks a lot!!
Glad to hear that!
Thank you so much for this tutorial. It really helped. Just subscribed. :)
great work thanks , When you try to access your local site from another device on the network,Is he working in local network ????
It works like magic. Thank you sir.
It's Cool! Respect ))
best tutorial, thanks a lot
6:36:53 PM [Apache] Error: Apache shutdown unexpectedly.
6:36:53 PM [Apache] This may be due to a blocked port, missing dependencies,
6:36:53 PM [Apache] improper privileges, a crash, or a shutdown by another method.
6:36:53 PM [Apache] Press the Logs button to view error logs and check
6:36:53 PM [Apache] the Windows Event Viewer for more clues
6:36:53 PM [Apache] If you need more help, copy and post this
6:36:53 PM [Apache] entire log window on the forums
Check the apache log to find the issue
el error esta en el archivo httpd-xampp.conf, asegúrate de haber escrito bien los virtualhosts, tendrías que tener algo así:
DocumentRoot "C:\xampp\htdocs"
ServerName localhost
ServerAlias *.localhost
DocumentRoot "C:\xampp\htdocs"
ServerName localhost
ServerAlias *.localhost
SSLEngine on
SSLCertificateFile "crt/localhost/server.crt"
SSLCertificateKeyFile "crt/localhost/server.key"
yo use "localhost" como dominio, cámbialo por el que vos quieras.
Does this issue Resolved? how
Uninstall Xampp From C Directory AND Install it in F Directory Then follow this step will resolve your problem
@@parceus4758 yes to the virtual host tag there is serverAlias not serviceAlias that you copied from
I can't reach mySQL after enstablishing the SSL certificate for my localhost. The dashboard works fine using the new domain. But when i tried to click phpMyAdmin it shows Error 404 - Object not found!!!
Can u show me exact error?
Thanks for save my life
Thank You Thank You
You are very welcome
@@LearnPainLess 🤗
Thankyou brother .you make it easy
this is work, thank you!!
You're welcome!
Thank U bro u save my time
My bro, you are the best
when i was add virtual host that details in httpd-xampp.conf file then our apache shutdown unexpectedly......i was add port as a 8080,4433 ...because I was change port setting previously
Not sure if the structure changed, but this didn't work for my version. The Apache server would not start and would not produce any errorlogs that were useful. Removing the code mentioned at the bottom of E:\XAMPP\apache\conf\extra\httpd-xampp corrected the issue for me. I will stop back if another tutorial leads me the same way with different results...
Same here
Is it applicable for "Intranet" system?
where about 100 or more devices are connected on same network?
Thank you man :)
apache error in xammp
Error: Apache shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
getting this errror in error log "server certificate does NOT include an ID which matches the server name"
Hello Sir, I couldn't get the local site certificate on my folder. i got server key file only.. what i do the next step to get local site certificate.Kindly help me on it..
Works like a charm
mine not working when i change the port 80 to 8080 and 443 to 4433. please help
is this still working? i tried it but it still says not secured in my localhost url
I'm getting an error "Don't have permission t access this resource
is it necessary to name it site.local? can i name it just the normal name like 'localhost?
The system cannot find the path specified.
here is issue with me.. can you help me regarding this?
it is https but now it says
Forbidden
You don't have permission to access this resource.
Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 Server at localhost Port 443
Have you followed all steps??
If anyones error are showing, Apache not Start , I fixed this error... Now working fine..
very very very helpful video
Hi , Everyone Please note this only work with in you System (Same where the Cert is Install ) , its not going to show any green pad in your local network for that you need to import the cert every individual local System.
Still this Video is very informative.
Thanx a lot to Prolong Services.
Amazing tutorial. After searching for so long ultimately found a easy solution. But one query how can we do this for multiple domain names.
Add multiple domain names with a single space in server name category and link them all in with your local dns through windows 32 option as described above
Thanks for the video.
We appreciate all that you do.💖
I have a problem with the solution provided above, It's not working on Firefox it only works on chrome.
What could be the reason.
I appreciate your quick response.
Gracias, saludos desde PERU🇵🇪
Hi, I am getting the following error rrafter installing
11:25:17 AM [Apache] Error: Apache shutdown unexpectedly.
11:25:17 AM [Apache] This may be due to a blocked port, missing dependencies,
11:25:17 AM [Apache] improper privileges, a crash, or a shutdown by another method.
11:25:17 AM [Apache] Press the Logs button to view error logs and check
11:25:17 AM [Apache] the Windows Event Viewer for more clues
11:25:17 AM [Apache] If you need more help, copy and post this
11:25:17 AM [Apache] entire log window on the forums
After adding your code to the apache httpd-xamp file, apache on xampp doesnt work anymore. Removing the added code solved the problem.
Same problem
i got "Error: Apache shutdown unexpectedly.
19:02:40 [Apache] This may be due to a blocked port, missing dependencies,
19:02:40 [Apache] improper privileges, a crash, or a shutdown by another method.
19:02:40 [Apache] Press the Logs button to view error logs and check
19:02:40 [Apache] the Windows Event Viewer for more clues
19:02:40 [Apache] If you need more help, copy and post this
19:02:40 [Apache] entire log window on the forums"
Please help me
same
My Apache shutdown unexpectedly. Can someone please help me?
i've updated "httpd-xampp.conf" file please use that latest config and this will resolve your problem, sorry for the inconvenience
In the currently (Oct. 16, 22) offered GDrive file, there is an error!
DocumentRoot "F:\xampp\htdocs"
ServerName sites.local
ServiceAlias *.sites.local
SSLEngine on
SSLCertificateFile "crt/sites.local/server.crt"
SSLCertificateKeyFile "crt/sites.local/server.key"
ServerAlias and not ServiceAlias!
For me it worked with the following code.
DocumentRoot "C:\xampp\htdocs"
ServerName sites.local
ServerAlias *.sites.local
DocumentRoot "C:\xampp\htdocs"
ServerName sites.local
ServerAlias *.sites.local
SSLEngine on
SSLCertificateFile "crt/sites.local/server.crt"
SSLCertificateKeyFile "crt/sites.local/server.key"
after doing this my apache is not starting. I don't know why
Uninstall Xampp From C Directory AND Install it in F Directory Then follow this step will resolve your problem
After generate ssl my apache is not working on xamp ??
There was typo mistake in attached file, now its fixed
non effect in internet
on my side, it says only in IE this site is encrypted. but on CHORME it says not secuured.
Thank you!
You're welcome!
it worked. thanks
How can I enable real ip as well ?
It's already working on my PC, although I am unsure why the facebook instant app seems to be not working.
Please help....
how to on public domain ?
after doing you staff the apache unable to start ?!
Nice Tutorial ❤
hello, how i want to change the site. because i want to secure my website but its using localhost too. can u help me please sir
i cant start apache after i stopped it
i've updated "httpd-xampp.conf" file please use that latest config and this will resolve your problem, sorry for the inconvenience
Amazing.
i have error when i run the Apache, can you help me please in last step
If i enable port fordwarding will the https still work on my external static ip address?
Hi there, great video, it helped me a lot thanks!!! 👏👏👏👏👏👏
You're welcome!
Can i use port forwarding on that domain
Thanks man!
If i use the ip address of the secured machine in another machine to access the website will it be secured
Thank you sir.
I have tried to create SSL, But I am getting error of "The system cannot find the path specified."
i've updated "httpd-xampp.conf" file please use that latest config and this will resolve your problem, sorry for the inconvenience
doesnt work for me
6:36:53 PM [Apache] Error: Apache shutdown unexpectedly.
6:36:53 PM [Apache] This may be due to a blocked port, missing dependencies,
6:36:53 PM [Apache] improper privileges, a crash, or a shutdown by another method.
6:36:53 PM [Apache] Press the Logs button to view error logs and check
Uninstall Xampp From C Directory AND Install it in F Directory Then follow this step will resolve your problem
this video not working now. even if you install it in drive F
i've updated "httpd-xampp.conf" file please use that latest config and this will resolve your problem, sorry for the inconvenience
What to do if i am using IIS server for local host sites ?
Apache service is unable to start after doing all of this stuff
can we use this ssl when we access from phone browser in the same network ?
have you tried? or is it only working with https only on current machine?
I have a question, is it possible to share this setup website Localhost XAMPP with custom domain and SSL/HTTPS via WIFI to other devices?
Yes you can share on local wifi
you didnt put all stuffs at description
Oh sorry, can u let me know what is left? So i can add in description
we will type them don't worry
if i add line http-xamp . The apache is not starting
Bro i want to open a html file through https localhost what to do after this
Place that html file in htdocs folder
Hi . Thanks for the tutorial.
Note: In firfox I find ssl insecure. But it is true in Chrome
hey! question. after i did all of this, xampp says: Error: Apache shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method.
Please help!
Edit: nevermind. a person with the username Yuval Agron commented (under this video): "Only one thing that caused my XAMPP to refuse restarting is the ServiceAlias tag from the .conf file. Only after I removed it - my server restarted successfully and my website is now HTTPS". He's a legend.
Edit: when i go to the https site, it gives the error NET::ERR_CERT_AUTHORITY_INVALID. damnit. help... please.....
Edit (yes, another one in the same 30m or less...): it seems to say that the cert is valid on the system im running it on, not on the system im trying to access it from. maybe if i restart my pc, it will work. ill try that and be back. - tried restarting my pc. didnt work. help, please.
Same issue
did you fixed ?
change the ServiceAlias to ServerAlias..lool
What the process of PositiveSSL?
Thanks
20:32:26 [Apache] Error: Apache shutdown unexpectedly.
20:32:26 [Apache] This may be due to a blocked port, missing dependencies,
20:32:26 [Apache] improper privileges, a crash, or a shutdown by another method.
20:32:26 [Apache] Press the Logs button to view error logs and check
20:32:26 [Apache] the Windows Event Viewer for more clues
20:32:26 [Apache] If you need more help, copy and post this
20:32:26 [Apache] entire log window on the forums
kindly please help, xampp, apache, xampp dashboard nothing is working... please help.
Hello, I have the same problem ... I used port 70 instead of 80 and 4433 instead of 433 ... I reset everything to default values and it still does not work ... If I delete the 2 settings and from file "httpd-xamp.conf" then my Apache starts without problems, but if i add the 2 info then my xampp does not start the Apache ...
@@albertorestello8533 👍
It's not working for me oo.
Apache shutdown Unexpectedly.
Please someone should help me
i've updated "httpd-xampp.conf" file please use that latest config and this will resolve your problem, sorry for the inconvenience
Hey bro, when trying to run sites.local with https, it says certificate is not valid.
Same issue man
failed to work
Great video. Please how do I access the secure localhost on another computer on the same network? I was able to do this and I can access the unsecure localhost on another machine on the same network but how do I access the secured localhost?
Hello can you please help mé with that now? I have same problem
@@patrikmikca6526 did you get any thing regarding this ?
@@AhmedHamed-hs9ed Nope still finding and you?