How to generate secure SSL certificate for localhost in XAMPP and Enable HTTPS for localhost

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024

Комментарии • 252

  • @yuvalagron3850
    @yuvalagron3850 2 года назад +8

    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 ! 🙂

    • @pawlobondarenko1884
      @pawlobondarenko1884 2 года назад +2

      Yes it's actually ServerAlias the conf in the description is wrong also struggled with that one

    • @LearnPainLess
      @LearnPainLess  2 года назад

      Oh sorry thats my mistake, i ll add latest working conf file

    • @rabiariaz5320
      @rabiariaz5320 2 года назад

      Where is that ServerAlias .config file?

    • @yuvalagron3850
      @yuvalagron3850 2 года назад

      @@rabiariaz5320 It's a ServerAlias tag inside the config files from the /xampp/apache/conf/extra directory. This is not a file name.

    • @mariagarciacarrasco8039
      @mariagarciacarrasco8039 2 года назад

      You saved my life.

  • @Joe.95.
    @Joe.95. 3 года назад +3

    I subbed and liked it before even watching lol
    Very clear tutorial many thanks brother couldn't have done it without you :)

    • @LearnPainLess
      @LearnPainLess  3 года назад +1

      Thank u so much, plz share with your friends as well 🤗🤗

  • @davidlp3019
    @davidlp3019 11 месяцев назад +1

    Thanks bro this helped me for my assignment for doing HTTP basic auth over SSL.

  • @andersonobah1392
    @andersonobah1392 8 месяцев назад +1

    This is beautifully done!!! Thank you very much!!!👌

  • @prabhatnhk
    @prabhatnhk Год назад +1

    Thank your for this video.... Money save.. love you bro.. 2000❤

  • @FXZIAD
    @FXZIAD Год назад +4

    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.

  • @kookia213
    @kookia213 2 года назад +1

    Thank you for a great video. Tried your solution and all works as a charm. many thanks!

  • @phuphanle668
    @phuphanle668 2 года назад

    finally, I found a guy who can help me. Thank you so much!!

  • @ingenierocivilizado728
    @ingenierocivilizado728 5 месяцев назад +1

    Very useful! Thank you so much for the video!!

  • @jpjapos2427
    @jpjapos2427 3 года назад +2

    Live long Indians! you guys are the best

  • @angelofabella7054
    @angelofabella7054 3 года назад

    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!!! :) :)

    • @angelofabella7054
      @angelofabella7054 3 года назад

      It's already working on my PC, although I am unsure why the facebook instant app seems to be not working.
      Please help....

    • @LearnPainLess
      @LearnPainLess  2 года назад

      what problem are you facing?

  • @erickogutu2501
    @erickogutu2501 Год назад

    Thank you very much, the most straightforward and precise video for the topic

  • @piyushsharma8904
    @piyushsharma8904 Год назад +1

    thank you so much worked in first attempt

  • @salmonindonesia3585
    @salmonindonesia3585 Год назад +2

    very clear.. many thanks!

  • @thisisashi2498
    @thisisashi2498 10 месяцев назад +1

    ohh godd!!! it worked thank you soo much!!!

  • @vivianmingaud7942
    @vivianmingaud7942 2 года назад +1

    you saved my day also my friend! Thanks a lot!!

  • @DeJunKyP
    @DeJunKyP Год назад

    STILL WORKS! awesome for the guides

  • @meralmaradia4774
    @meralmaradia4774 5 месяцев назад +1

    very helpful , detailed explaination

  • @yitzchaksviridyuk932
    @yitzchaksviridyuk932 3 года назад

    Thank you so much for this tutorial. It really helped. Just subscribed. :)

  • @ibrahimalbarwani4181
    @ibrahimalbarwani4181 9 месяцев назад +1

    someone tried to sell me this ssl for local machine 😂
    Thanks for this tutorial this is the best!

    • @LearnPainLess
      @LearnPainLess  8 месяцев назад

      Thank you so much, i m making videos on other xampp related issues and tutorials

  • @tarekdhl6446
    @tarekdhl6446 3 месяца назад

    great work thanks , When you try to access your local site from another device on the network,Is he working in local network ????

  • @user-yp6gz4iu1n
    @user-yp6gz4iu1n 5 месяцев назад +1

    thanks wangu. you helped a lot

    • @LearnPainLess
      @LearnPainLess  4 месяца назад

      You are welcome, please keep supporting

  • @styleyt4789
    @styleyt4789 10 месяцев назад +1

    Thank you man you saved us

  • @msgaming.virtual
    @msgaming.virtual 2 года назад

    I almost search documents, nothing working, now it working fine for me, Thank you so much for support...

  • @manishgautam2424
    @manishgautam2424 Год назад +2

    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

  • @shaheerarain1026
    @shaheerarain1026 Год назад +1

    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.

  • @benjaminchima5153
    @benjaminchima5153 Год назад

    My bro, you are the best

  • @mdrahatislamkhan9966
    @mdrahatislamkhan9966 Год назад +5

    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

    • @hw_33
      @hw_33 Год назад

      same condition here bro. We need help!

    • @harshkr.2904
      @harshkr.2904 Год назад

      How it get solved?

    • @AjGaming-vx2pc
      @AjGaming-vx2pc Год назад

      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.

    • @chuckcoughlin3112
      @chuckcoughlin3112 Год назад +1

      @@AjGaming-vx2pc Did not work

  • @rizkyzulkarnain1856
    @rizkyzulkarnain1856 Год назад +1

    Sir, I can't start Apache after I stopped it. I already use your file but still don't want to start again

  • @JevLogin
    @JevLogin 9 месяцев назад +1

    It's Cool! Respect ))

  • @baanun
    @baanun 3 года назад

    It works like magic. Thank you sir.

  • @mauricioguerrero3172
    @mauricioguerrero3172 Год назад +1

    this is work, thank you!!

  • @nanfmn
    @nanfmn 9 месяцев назад +1

    best tutorial, thanks a lot

  • @nmop2007
    @nmop2007 Год назад

    Thankyou brother .you make it easy

  • @utpalendukhatua
    @utpalendukhatua 5 месяцев назад +2

    Thank You Thank You

  • @ykmusicpro3624
    @ykmusicpro3624 2 года назад +1

    Thank U bro u save my time

  • @mdkabir2784
    @mdkabir2784 10 месяцев назад +1

    Thanks for save my life

  • @omarl7333
    @omarl7333 3 года назад +7

    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

    • @LearnPainLess
      @LearnPainLess  3 года назад

      Check the apache log to find the issue

    • @ricksanchez-mm9ei
      @ricksanchez-mm9ei 3 года назад +3

      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.

    • @parceus4758
      @parceus4758 3 года назад

      Does this issue Resolved? how

    • @musistic5497
      @musistic5497 2 года назад

      Uninstall Xampp From C Directory AND Install it in F Directory Then follow this step will resolve your problem

    • @ilambuduri
      @ilambuduri 2 года назад +7

      @@parceus4758 yes to the virtual host tag there is serverAlias not serviceAlias that you copied from

  • @RenGaSenpaiChannel
    @RenGaSenpaiChannel 3 года назад

    Works like a charm

  • @aleksbaryshnikov
    @aleksbaryshnikov 3 месяца назад

    Thank you man :)

  • @qwertyasdfg7782
    @qwertyasdfg7782 Год назад +1

    is it necessary to name it site.local? can i name it just the normal name like 'localhost?

  • @renukabhakare1702
    @renukabhakare1702 Год назад +1

    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

  • @sanjid_mishu
    @sanjid_mishu 29 дней назад

    Is it applicable for "Intranet" system?
    where about 100 or more devices are connected on same network?

  • @ayushkhandelwal9427
    @ayushkhandelwal9427 Год назад +1

    getting this errror in error log "server certificate does NOT include an ID which matches the server name"

  • @anunmemorableplayer8182
    @anunmemorableplayer8182 2 года назад +2

    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!!!

  • @beemoRBX
    @beemoRBX 3 месяца назад

    is this still working? i tried it but it still says not secured in my localhost url

  • @johnjavieridmilao5247
    @johnjavieridmilao5247 3 года назад +1

    mine not working when i change the port 80 to 8080 and 443 to 4433. please help

  • @paatikathaigal
    @paatikathaigal Год назад +1

    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..

  • @Thibosdlamini
    @Thibosdlamini 2 года назад +1

    I'm getting an error "Don't have permission t access this resource

  • @alamin00038
    @alamin00038 2 года назад +1

    very very very helpful video

  • @rjmubasharmalik4444
    @rjmubasharmalik4444 Год назад

    The system cannot find the path specified.
    here is issue with me.. can you help me regarding this?

  • @LalatenduSwain
    @LalatenduSwain 3 года назад

    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.

  • @jorgeantoniocamposhernande1332
    @jorgeantoniocamposhernande1332 2 года назад +1

    Hi there, great video, it helped me a lot thanks!!! 👏👏👏👏👏👏

  • @cdmg87
    @cdmg87 2 года назад

    Gracias, saludos desde PERU🇵🇪

  • @nicholasreynolds6609
    @nicholasreynolds6609 2 года назад +1

    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...

  • @vijendrakumar3408
    @vijendrakumar3408 Месяц назад

    apache error in xammp
    Error: Apache shutdown unexpectedly.
    This may be due to a blocked port, missing dependencies,

  • @flaviopacini8384
    @flaviopacini8384 2 года назад +1

    Thank you!

  • @mohammedattar3628
    @mohammedattar3628 Год назад

    Nice Tutorial ❤

  • @hasanablak
    @hasanablak 2 года назад +1

    Amazing.

  • @billyhadiattaofeeq1835
    @billyhadiattaofeeq1835 2 года назад +1

    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.

  • @contrivix_quest_kwt
    @contrivix_quest_kwt 3 года назад +1

    Can i use port forwarding on that domain

  • @vivekpatel87
    @vivekpatel87 2 года назад +1

    Amazing tutorial. After searching for so long ultimately found a easy solution. But one query how can we do this for multiple domain names.

    • @virajsingh553
      @virajsingh553 Год назад

      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

  • @prabhatnhk
    @prabhatnhk Год назад

    If anyones error are showing, Apache not Start , I fixed this error... Now working fine..

  • @AliAlenezi-x9c
    @AliAlenezi-x9c 3 месяца назад

    it worked. thanks
    How can I enable real ip as well ?

  • @Ton_DayTrader
    @Ton_DayTrader Год назад

    how to on public domain ?

  • @gemilaguinaldo6723
    @gemilaguinaldo6723 2 года назад

    Thanks man!

  • @ravronz9677
    @ravronz9677 2 года назад

    If i use the ip address of the secured machine in another machine to access the website will it be secured

  • @khairinaalisya4228
    @khairinaalisya4228 Год назад

    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

  • @mwajeeh54
    @mwajeeh54 Год назад

    after doing you staff the apache unable to start ?!

  • @DiyintheGhetto
    @DiyintheGhetto 2 года назад

    If i enable port fordwarding will the https still work on my external static ip address?

  • @h2oghost882
    @h2oghost882 2 года назад +2

    i cant start apache after i stopped it

    • @LearnPainLess
      @LearnPainLess  2 года назад

      i've updated "httpd-xampp.conf" file please use that latest config and this will resolve your problem, sorry for the inconvenience

  • @ChrisPlayzBLOX
    @ChrisPlayzBLOX 7 месяцев назад

    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

  • @mallakabdullahdarwishalbal4450

    i have error when i run the Apache, can you help me please in last step

  • @flukfix7571
    @flukfix7571 3 года назад

    Thank you sir.

  • @klassebip2934
    @klassebip2934 Год назад

    on my side, it says only in IE this site is encrypted. but on CHORME it says not secuured.

  • @gx9686
    @gx9686 3 года назад +1

    can we use this ssl when we access from phone browser in the same network ?

    • @sufyankhanbest
      @sufyankhanbest 3 года назад

      have you tried? or is it only working with https only on current machine?

  • @OnGuitar
    @OnGuitar 3 года назад

    after doing this my apache is not starting. I don't know why

    • @musistic5497
      @musistic5497 2 года назад

      Uninstall Xampp From C Directory AND Install it in F Directory Then follow this step will resolve your problem

  • @aerotraincorp9078
    @aerotraincorp9078 2 года назад

    What to do if i am using IIS server for local host sites ?

  • @dharsanv3366
    @dharsanv3366 9 месяцев назад +1

    Bro i want to open a html file through https localhost what to do after this

    • @LearnPainLess
      @LearnPainLess  4 месяца назад

      Place that html file in htdocs folder

  • @VigneshB-vn7ho
    @VigneshB-vn7ho Год назад

    if i add line http-xamp . The apache is not starting

  • @Simplebutgreat2
    @Simplebutgreat2 2 года назад

    After adding your code to the apache httpd-xamp file, apache on xampp doesnt work anymore. Removing the added code solved the problem.

  • @chukslar
    @chukslar 2 года назад

    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?

  • @zainabbutt9899
    @zainabbutt9899 Год назад

    After generate ssl my apache is not working on xamp ??

    • @LearnPainLess
      @LearnPainLess  11 месяцев назад

      There was typo mistake in attached file, now its fixed

  • @angelofabella7054
    @angelofabella7054 3 года назад

    It's already working on my PC, although I am unsure why the facebook instant app seems to be not working.
    Please help....

  • @erafalls2608
    @erafalls2608 2 года назад +1

    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

    • @aldinvanali5968
      @aldinvanali5968 2 года назад

      same

    • @taiwebmasta
      @taiwebmasta 2 года назад

      My Apache shutdown unexpectedly. Can someone please help me?

    • @LearnPainLess
      @LearnPainLess  2 года назад

      i've updated "httpd-xampp.conf" file please use that latest config and this will resolve your problem, sorry for the inconvenience

    • @hajotv
      @hajotv Год назад

      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"

  • @gumiarek
    @gumiarek 10 месяцев назад +1

    non effect in internet

  • @zug8863
    @zug8863 3 года назад +2

    you didnt put all stuffs at description

    • @LearnPainLess
      @LearnPainLess  3 года назад +1

      Oh sorry, can u let me know what is left? So i can add in description

    • @baikunthareemal
      @baikunthareemal 3 года назад

      we will type them don't worry

  • @firozfaizan
    @firozfaizan Год назад

    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

  • @balthomemmoo4320
    @balthomemmoo4320 2 месяца назад

    Thanks

  • @rabiariaz5320
    @rabiariaz5320 2 года назад

    Apache service is unable to start after doing all of this stuff

  • @prevpapers
    @prevpapers 2 года назад

    I have tried to create SSL, But I am getting error of "The system cannot find the path specified."

    • @LearnPainLess
      @LearnPainLess  2 года назад

      i've updated "httpd-xampp.conf" file please use that latest config and this will resolve your problem, sorry for the inconvenience

  • @raokaran1008
    @raokaran1008 3 года назад

    What the process of PositiveSSL?

  • @ghrm123
    @ghrm123 3 года назад +1

    Good

  • @deirputrairham
    @deirputrairham 3 года назад

    Thanks buddy

  • @wanderergeek5526
    @wanderergeek5526 2 года назад

    Hey bro, when trying to run sites.local with https, it says certificate is not valid.

  • @sajjadhossainMusic
    @sajjadhossainMusic 3 года назад

    Helpful

  • @What-a-save
    @What-a-save Год назад +1

    🇸🇦🇸🇦🇸🇦

  • @GilTech.
    @GilTech. 2 года назад

    Hi . Thanks for the tutorial.
    Note: In firfox I find ssl insecure. But it is true in Chrome

  • @thienhovan4290
    @thienhovan4290 2 года назад

    hello from VN, can you help me to solve the problem ? i do the same as the video but it's not work

  • @junioereves6433
    @junioereves6433 2 года назад

    Na Índia existe programadores muito bons. Eu sou do Brasil, mas admiro os programares indianos mais do que os programadores brasileiros.