티스토리 뷰

[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"

 

https://pstudio411.tistory.com/entry/%EC%9D%B8%EC%A6%9D%EC%84%9C-%EB%B0%9C%EA%B8%89-%EB%B0%9B%EA%B8%B0-%EC%9C%84%ED%95%9C-mkcert

 

인증서 발급 받기 위한 mkcert

mkcert 라는 프로그램으로 로컬 환경(내 컴퓨터) 에서 신뢰할 수 있는 인증서를 만들 수 있는 간단한 도구이다. CA(인증기관)의 인증서를 발급받아 자체적으로 관리하는 것은 복잡한 명령, 전문 지

pstudio411.tistory.com

 

https://dev.to/everylearning/localhost-ssl-55oe

 

localhost에 인증서(SSL) 설정하기

로컬에서 개발을 진행할 때 SSL문제로 테스트에 문제가 되는 경우가 있습니다. 그래서 로컬에도 SSL을 적용할 수 있는 방법들이 추가되고 있습니다. ...

dev.to

 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함