Server/HTTPS (SSL|TLS)
[HTTPS] mkcert를 활용한 localhost 환경에서 SSL 설정
HoZang
2022. 2. 16. 14:43
[HTTPS] mkcert를 활용한 localhost 환경에서 SSL 설정
chocolatey 설치
# Get-ExecutionPolicy 실행
$ Get-ExecutionPolicy
# Restricted라면 AllSigned나 Bypass로 설정
# ExcutionPolicy를 AllSigned로 설정
$ Set-ExecutionPolicy AllSigned
# ExcutionPolicy를 Bypass로 설정
$ Set-ExecutionPolicy Bypass -Scope Process
# 설치!
$ 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'))
# 확인
$ choco
mkcert 설치
choco install mkcert
인증서 생성
mkcert localhost domain2.localhost
Created a new certificate valid for the following names 📜
- "localhost"
- "domain2.localhost"
The certificate is at "./localhost+1.pem" and the key at "./localhost+1-key.pem"
인증서 발급 받기 위한 mkcert
mkcert 라는 프로그램으로 로컬 환경(내 컴퓨터) 에서 신뢰할 수 있는 인증서를 만들 수 있는 간단한 도구이다. CA(인증기관)의 인증서를 발급받아 자체적으로 관리하는 것은 복잡한 명령, 전문 지
pstudio411.tistory.com
https://dev.to/everylearning/localhost-ssl-55oe
localhost에 인증서(SSL) 설정하기
로컬에서 개발을 진행할 때 SSL문제로 테스트에 문제가 되는 경우가 있습니다. 그래서 로컬에도 SSL을 적용할 수 있는 방법들이 추가되고 있습니다. ...
dev.to