-
Windows Local Https 환경 설정프로그래밍/TIL 2022. 4. 27. 10:55
✔ Chocolatey
chocolatey 는 Windows SW용 시스템 수준의 명령줄 패키지 관리자 및 설치 프로그램. NuGet 패키징 인프라와 Windows PowerShell 을 사용해 SW 다운로드 및 설치 프로세스를 단순화한다
Chocolatey is a machine-level, command-line package manager and installer for Windows software. It uses the NuGet packaging infrastructure and Windows PowerShell to simplify the process of downloading and installing software.
https://en.wikipedia.org/wiki/ChocolateyChocolatey - Wikipedia
From Wikipedia, the free encyclopedia Jump to navigation Jump to search Windows package manager software Chocolatey[3] is a machine-level, command-line package manager and installer for Windows software. It uses the NuGet packaging infrastructure and Windo
en.wikipedia.org
chocolatey 설치 사이트
https://chocolatey.org/install
Installing Chocolatey
Chocolatey is software management automation for Windows that wraps installers, executables, zips, and scripts into compiled packages. Chocolatey integrates w/SCCM, Puppet, Chef, etc. Chocolatey is trusted by businesses to manage software deployments.
chocolatey.org
✔ Powershell
파워쉘 또는 윈도우 파워셀은 MS 가 개발한 확장가능한 명령줄 인터페이스 셸 및 스크립트 언어를 특징으로 하는 명령어 인터프리터이다
https://ko.wikipedia.org/wiki/%ED%8C%8C%EC%9B%8C%EC%85%B8파워셸 - 위키백과, 우리 모두의 백과사전
파워셸PowerShell윈도우 파워셸 세션의 스크린샷원저자제프리 스노버, 브루스 파예트, 제임스 트루허(그 외 개발자)개발자마이크로소프트발표일2006년 11월 14일 (15년 전)(2006-11-14)안정화 버전7.2.0 /
ko.wikipedia.org
✔ mkcert
mkcert 라는 프로그램은 로컬환경 (내 컴퓨터) 내에서 신뢰할 수 있는 인증서를 만드는 간단한 도구. CA(인증기관)의 인증서를 발급받아 자체적으로 관리하는 것은 복잡한 명령, 전문 지식이 필요하다.
mkcert: A simple zero-config tool to make locally trusted development certificates with any names you'd like
https://mkcert.devGitHub - FiloSottile/mkcert: A simple zero-config tool to make locally trusted development certificates with any names you'd lik
A simple zero-config tool to make locally trusted development certificates with any names you'd like. - GitHub - FiloSottile/mkcert: A simple zero-config tool to make locally trusted developmen...
github.com
mkcert -install
이 명령어로 local 을 인증된 발급기관으로 추가한다
✔ Local 환경 인증서 발급
다음으로 로컬환경에 대한 인증서를 만들어야 한다
mkcert localhost 127.0.0.1 ::1
위 명령어를 실행하면 인증서 파일, 인증서 키 파일이 생성된다. .pem 확장자의 파일이다
옵션으로 추가한 localhost, 127.0.0.1(IPv4), ::1(IPv6) 에서 사용할 수 있는 인증서가 발급된다파일 지정없이 만들면 localhost+2.pem , localhost+2-key.pem 이렇게 만들어진다
mkcert -key-file key.pem -cert-file cert.pem localhost 127.0.0.1 ::1
인증서 발급 받기 위한 mkcert
mkcert 라는 프로그램으로 로컬 환경(내 컴퓨터) 에서 신뢰할 수 있는 인증서를 만들 수 있는 간단한 도구이다. CA(인증기관)의 인증서를 발급받아 자체적으로 관리하는 것은 복잡한 명령, 전문 지
pstudio411.tistory.com
Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Try the new cross-platform PowerShell https://aka.ms/pscore6 PS C:\WINDOWS\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) Forcing web requests to allow TLS v1.2 (Required for requests to Chocolatey.org) Getting latest version of the Chocolatey package for download. Not using proxy. Getting Chocolatey from https://community.chocolatey.org/api/v2/package/chocolatey/1.1.0. Downloading https://community.chocolatey.org/api/v2/package/chocolatey/1.1.0 to C:\Users\GAEUNL~1\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip Not using proxy. Extracting C:\Users\GAEUNL~1\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip to C:\Users\GAEUNL~1\AppData\Local\Temp\chocolatey\chocoInstall Installing Chocolatey on the local machine Creating ChocolateyInstall as an environment variable (targeting 'Machine') Setting ChocolateyInstall to 'C:\ProgramData\chocolatey' WARNING: It's very likely you will need to close and reopen your shell before you can use choco. Restricting write permissions to Administrators We are setting up the Chocolatey package repository. The packages themselves go to 'C:\ProgramData\chocolatey\lib' (i.e. C:\ProgramData\chocolatey\lib\yourPackageName). A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin' and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'. Creating Chocolatey folders if they do not already exist. WARNING: You can safely ignore errors related to missing log files when upgrading from a version of Chocolatey less than 0.9.9. 'Batch file could not be found' is also safe to ignore. 'The system cannot find the file specified' - also safe. chocolatey.nupkg file not installed in lib. Attempting to locate it from bootstrapper. PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding... WARNING: Not setting tab completion: Profile file does not exist at 'C:\Users\Gaeun Lee\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'. Chocolatey (choco.exe) is now ready. You can call choco from anywhere, command line or powershell by typing choco. Run choco /? for a list of functions. You may need to shut down and restart powershell and/or consoles first prior to using choco. Ensuring Chocolatey commands are on the path Ensuring chocolatey.nupkg is in the lib folder PS C:\WINDOWS\system32> choco install mkcert Chocolatey v1.1.0 Installing the following packages: mkcert By installing, you accept licenses for the packages. Progress: Downloading mkcert 1.4.3... 100% mkcert v1.4.3 [Approved] mkcert package files install completed. Performing other installation steps. ShimGen has successfully created a shim for mkcert.exe The install of mkcert was successful. Software installed to 'C:\ProgramData\chocolatey\lib\mkcert' Chocolatey installed 1/1 packages. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). PS C:\WINDOWS\system32> mkcert -install Created a new local CA 💥 The local CA is now installed in the system trust store! ⚡️ Warning: "keytool" is not available, so the CA can't be automatically installed in Java's trust store! ⚠️ PS C:\WINDOWS\system32> mkcert localhost 127.0.0.1 ::1 Note: the local CA is not installed in the Java trust store. Run "mkcert -install" for certificates to be trusted automatically ⚠️ Created a new certificate valid for the following names 📜 - "localhost" - "127.0.0.1" - "::1" The certificate is at "./localhost+2.pem" and the key at "./localhost+2-key.pem" ✅ It will expire on 26 July 2024 🗓 PS C:\WINDOWS\system32>
생성된 경로는 C:\WINDOWS\system32 였구나
https 로 작동할 파일의 루트경로에 .pem 파일 2개 넣어주고 script 명령어 말고 .env 파일에 작성해주면 잘 동작한다
local https 환경설정
https://github-wiki-see.page/m/dltmdrbtjd/HANG/wiki/local-https-%ED%99%98%EA%B2%BD%EC%84%A4%EC%A0%95local https 환경설정 - dltmdrbtjd/HANG Wiki
local https 환경설정 - dltmdrbtjd/HANG Wiki local 환경 https로 설정하기 이번 프로젝트의 로그인 구현을 Set_cookie 방식으로 진행하였는데, 구글의 SameSite 설정이 Lax로 변경되면서 cross origin에서 HTTP 통신은
github-wiki-see.page
'프로그래밍 > TIL' 카테고리의 다른 글
windows.scrollY 의 쓰임 (0) 2022.04.27 JS !! 논리연산자 (0) 2022.04.27 vscode 설정 (0) 2022.04.27 react-router-dom 6 version (0) 2021.11.28