Giter VIP home page Giter VIP logo

ssl-sample's Introduction

ssl-sample

Prerequisites

  • docker가 설치되어 있어야 한다.

    • Orbstack 사용 권장 아래 명령어로 설치 가능

      brew install orbstack
  • /etc/hosts 파일에 대한 이해?

How to run?

M2-Pro MacBook 기준으로 설명한다.

  1. ./nginx.conf 파일에서 필요한 값을 치환한다.

    1. <YOUR_DOMAIN_HERE>: 노출할 도메인 이름이다. (ex - client-dev.mytestserver)
    2. <YOUR_TARGET_PORT_HERE>: 포워딩 타겟 포트를 치환한다.
  2. 내 로컬머신의 /etc/hosts을 수정한다

    sudo vi /etc/hosts
    
    # vim 에디터로 /etc/hosts 파일에 아래와 같은 내용을 추가한다.
    
    ...중략...
    127.0.0.1       <YOUR_DOMAIN_HERE>
    
    
    # 예를들면... 아래와 같이
    
    ...중략...
    127.0.0.1       client-dev.mytestserver
  3. ./ssl/README.md에 참조된 링크를 읽고 인증서를 생성한다.

  4. 생성한 인증서를 내 로컬 머신이 신뢰하도록 한다.

    # 내부 개발용 TLS 인증서의 Root CA를 Trust 목록에 추가한다.
    # 아래 스크립트는 MacOS 기준 설정 명령어다. 해당 프로젝트의 Root에서 수행한다.
    sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ./ssl/ca.pem
  5. Run!

    ./container-cmd.sh up
    
    # 중지하고 싶으면 아래와 같이 입력한다
    # ./container-cmd.sh down

ssl-sample's People

Contributors

baeky avatar

Stargazers

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