# Show GN: local-tls-proxy: 모든 포트를 https 로 만들기

> Clean Markdown view of GeekNews topic #16620. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=16620](https://news.hada.io/topic?id=16620)
- GeekNews Markdown: [https://news.hada.io/topic/16620.md](https://news.hada.io/topic/16620.md)
- Type: show
- Author: [jic5760](https://news.hada.io/@jic5760)
- Published: 2024-09-05T19:11:30+09:00
- Updated: 2024-09-05T19:11:30+09:00
- Original source: [github.com/jc-lab](https://github.com/jc-lab/local-tls-proxy/releases/)
- Points: 24
- Comments: 5

## Summary

local-tls-proxy는 모든 포트를 HTTPS로 프록시할 수 있어 브라우저에서 Secure Context를 쉽게 테스트할 수 있습니다. 이 도구는 CA 인증서를 자동으로 생성하고 설치할 수 있으며, Linux와 Windows 모두에서 지원됩니다. 사용법이 간단하여, 몇 가지 명령어만으로 HTTPS 프록시 설정을 완료할 수 있습니다.

## Topic Body

브라우저에서 Secure Context 을 테스트 해야 했는데, 비슷한 프로그램들이 있지만 세팅하기 좀 귀찮더라구요..  
그래서 모든 포트든 프록시 할 수 있도록 만든 local-tls-proxy 입니다.  
  
CA 인증서를 자동으로 생성하고 "-install" 인수로 설치할 수 있으며, Linux와 Windows 모두 지원합니다.  
  
모든 https://{포트}.{IP}.sslip.io 에 대한 요청을 http://{IP}:{포트} 으로 프록시 합니다.  
  
---  
사용법:  
  
1. CA 인증서 설치  
- Linux의 경우: $ sudo ./local-tls-proxy -install  
- Windows(관리자 모드)의 경우: > local-tls-proxy.exe -install  
  
2. 프록시 실행  
$ ./local-tls-proxy -port 5443  
  
3. 이제 https://{포트}.{IP}.sslip.io:5443/ 으로 접속하면 http://{IP}:{포트}/ 으로 프록시 됩니다.  
예를 들어 https://5173.127-0-0-1.sslip.io:5443/ 은 http://127.0.0.1:5173/ 으로 연결됩니다.

## Comments



### Comment 28733

- Author: iolate
- Created: 2024-09-09T12:18:04+09:00
- Points: 1

{포트}.{ip} 로 프록시를 정상적으로 사용하려면 dns 응답은 입력한 ip와 무관하게 로컬을 줘야할텐데, 그렇지 않고 입력한 ip를 응답으로 주고 있네요. (이 경우 당연히 https 처리도, 해당 포트로의 포워딩도 작동할 수 없음)  
  
코드를 보니 인증서 발행도 *.127-0-0-1.sslip.io 로 생성하고 있는데,,, 이럴거면 ip 를 주소 규칙에서 빼도 되지 않을까 싶습니다

### Comment 28663

- Author: jujumilk3
- Created: 2024-09-06T17:16:48+09:00
- Points: 1

최고

### Comment 28617

- Author: plaaat0102
- Created: 2024-09-05T21:50:59+09:00
- Points: 1

ngrok 이나 cloudflared 같은게 있긴한데 세팅 안하고 간단하게 테스팅 하기에는 디게 괜찮아 보이네용!

### Comment 28613

- Author: unsure4000
- Created: 2024-09-05T20:30:54+09:00
- Points: 1

CA 인증서 지우는 방법이 마련되어있나요?

### Comment 28614

- Author: jic5760
- Created: 2024-09-05T20:50:03+09:00
- Points: 1
- Parent comment: 28613
- Depth: 1

아 간단하게 만들어서 아직 지우는건 없습니다.  
윈도우의 경우 mmc -> 인증서 들어가서 삭제는 가능합니다.
