TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Simplify testing HTTPS locally with any port proxing

1 pointsby joseph20249 months ago

1 comment

joseph20249 months ago
I built a tool called local-tls-proxy, which allows easy setup of HTTPS for local testing. It works by proxying all `<a href="https:&#x2F;&#x2F;{PORT}.{IP}.sslip.io" rel="nofollow">https:&#x2F;&#x2F;{PORT}.{IP}.sslip.io</a>` requests to their `<a href="http:&#x2F;&#x2F;{IP}:{PORT}" rel="nofollow">http:&#x2F;&#x2F;{IP}:{PORT}</a>` counterparts.<p>It&#x27;s especially useful for testing in secure contexts in browsers. The tool automatically generates and installs CA certificates, making it convenient for developers on both Linux and Windows.<p>---<p>Usage:<p>1. Install CA certificate<p>For Linux: $ sudo .&#x2F;local-tls-proxy -install<p>For Windows (administrator mode): &gt; local-tls-proxy.exe -install<p>2. Run the proxy $ .&#x2F;local-tls-proxy -port 5443<p>3. Now, access via <a href="https:&#x2F;&#x2F;{PORT}.{IP}.sslip.io:5443&#x2F;" rel="nofollow">https:&#x2F;&#x2F;{PORT}.{IP}.sslip.io:5443&#x2F;</a> which proxies to <a href="http:&#x2F;&#x2F;{IP}:{PORT}&#x2F;" rel="nofollow">http:&#x2F;&#x2F;{IP}:{PORT}&#x2F;</a>.<p>For example: <a href="https:&#x2F;&#x2F;5173.127-0-0-1.sslip.io:5443&#x2F;" rel="nofollow">https:&#x2F;&#x2F;5173.127-0-0-1.sslip.io:5443&#x2F;</a> proxies to <a href="http:&#x2F;&#x2F;127.0.0.1:5173&#x2F;" rel="nofollow">http:&#x2F;&#x2F;127.0.0.1:5173&#x2F;</a>.