Git Product home page Git Product logo

mkcert-windows's Introduction

MKCERT !! Windows 11 !! { Symfony 6 }

If you are using Symfony's built-in build system or if you are using Docker, this tutorial is not for you. destined. However, if you are in my case and you use a local server on your machine, like Wampserver, then this tutorial will be useful for you.

Question: why opt for a local server on your machine? The answer is simple: when you develop Android applications that connect to a Symfony API, there may be constraints related to HTTPS. In this context, you might not really have a choice (easier to solve)

2023-08-21-23-36-25.png 2023-08-21-23-34-20.png 2023-08-21-23-38-09.png

Environment !!

  • Windows 11 64 bits
  • WampServer 3.3.1
  • Apache 2.4.55
  • PHP 8.1.21
  • MariaDB 10.6.5
  • Node.js 18.17.1
  • NPM 9.8.1.

Installation

  1. chocolatey
  2. Scoop
  3. Symfony CLI
  4. MkCert
  5. MakeFile

Install chocolatey -> Select Windows Powershell(Admin)

chocolatey.org

    Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

Install Scoop -> Select Windows Powershell(Admin)

Scoop.sh

    > Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
    > irm get.scoop.sh | iex

Assume you haven't installed symfony CLI yet

symfony.com

    $ scoop install symfony-cli

MKCERT by chocolatey

    > choco install mkcert

MakeFile by chocolatey

    > choco install make

WWOOOOO: ..... Done ๐ŸŽˆ

THEN :

MKCERT command

    $ mkcert -install
    Created a new local CA ๐Ÿ’ฅ
    The local CA is now installed in the system trust store! โšก๏ธ
    The local CA is now installed in the Firefox trust store (requires browser restart)! ๐ŸฆŠ
    $ mkcert example.com "*.example.com" example.test localhost 127.0.0.1 ::1
    Created a new certificate valid for the following names ๐Ÿ“œ
        - "example.com"
        - "*.example.com"
        - "example.test"
        - "localhost"
        - "127.0.0.1"
        - "::1"

    The certificate is at "./example.com+5.pem" and the key at "./example.com+5-key.pem" โœ…

Black MAGIC ๐Ÿง™โ€โ™‚๏ธ ๐ŸŽ‰ ๐Ÿคฟ

    mkcert -key-file /path/to/key.pem -cert-file /path/to/cert.pem example.com *.example.com
    > make set-ssl  nameDomain="domaine.wip" 
    
    #---MKCERT-#
    MKCERT = mkcert
    MKCERT_INSTALL = $(MKCERT) -install
    #------------#
    
    ...........................

    CompileAndRun: CompileFile RunFile
    
    CompileFile:
        (Compiling code)
    
    set-ssl:
        IF exist "./config/ssl" ( echo "./config/ssl" exists ) ELSE ( mkdir "./config/ssl" && echo "./config/ssl" created)
        $(MKCERT) -key-file ./config/ssl/_wildcard.$(nameDomain)-key.pem -cert-file ./config/ssl/_wildcard.$(nameDomain).pem *.$(nameDomain)

Contributing

If you want to contribute (thank you!) to this bundle, here are some guidelines:

  • Please respect the Symfony guidelines
  • Test everything! Please add tests cases to the tests/ directory when:
    • You fix a bug that wasn't covered before
    • You add a new feature
    • You see code that works but isn't covered by any tests (there is a special place in heaven for you)

Todo

  • Packagist

Thanks# MKCERT-Windows

Install and set Mkcert on windows 11

mkcert-windows's People

Contributors

xorgxx avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.