A final fix for the issue with auto-gen SSL certs missing SAN error.


  • | 137 points

    I recently started using Laragon for its SSL feature. I noticed that when I visited the HTTPS version of a domain is created with Laragon is an getting errors from Chrome 64.

    I didn't searching here and found some post about the error. The thing is some of the solutions are for earlier versions of Laragon and the all have different solutions.

    So this post is to find out if these issues were fixed in a newer version of the program or which solution should i be using.


  • | 30 points

    I have the same problem

    AH00526 syntax error


  • | 137 points

    @timi Nope! No syntax errors, I could fixed that myself it that was the case.


  • | 30 points

    Well its not really a syntax error but can't find the .crt file or its missing

    only .key is in the folder

    Can you share how you would fix that if you don't mind


  • | 1958 points

    Hi @timi

    Here is the solution:

    1. Download makecert.bat (created by @bantya ), here is the link:

    https://github.com/bantya/MakeCert

    1. After you download it, move the makecert.bat to

    your_local_disk:\laragon\bin\apache\your_apache_version\bin

    My location is C:\laragon\bin\apache\httpd-2.4.29-Win64-VC15\bin.

    Why do you place it there? Because there's an openssl there.

    1. Press enter, then follow the instruction (please do not use space, use underscore instead!

    2. After that, the application will create 3 files, which .crt, .key, and .cnf. Move those items to your_local_disk:\laragon\etc\ssl.

    3. Import the certificate from browser, for example, we will use Chrome.

      • Go to Setting
      • search for Certificate choose Manage Certificate
      • Please choose tab Trusted Root Certification Authorities then press Import
      • Press next, and choose browse to locate the .crt file.
      • Please restart your browser, and reload the Laragon.

    Enjoy the https locally :D

    P.S: for more information, you can find it here


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.