Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically provide HTTPS for HTTP content from Ygg-Ips? #7

Open
perguth opened this issue Apr 26, 2024 · 3 comments
Open

Automatically provide HTTPS for HTTP content from Ygg-Ips? #7

perguth opened this issue Apr 26, 2024 · 3 comments

Comments

@perguth
Copy link

perguth commented Apr 26, 2024

Idea:

Automatically provide HTTPS for HTTP content from Ygg-IPs:

  1. Generate and provide a root-certificate and add it to the system.
  2. Automatically forward URLs of the form "http://Ygg-IP" to https.
  3. Transparently create a certificate for "https://Ygg-IPs" as soon as they are queried through the proxy
HTTP-Server -> Yggdrasil -> Yggstack (Yggdrasil -> Proxy -> HTTPS) -> Client

Why?

🡆 If Yggstack install a root certificate and then generates certificates for Ygg-IPs and HTTPS-wraps the HTTP traffic, we would achieve a "valid" certificates for Ygg-IPs automatically.

HTTPS is needed for a secure context which is a Window or Worker for which certain minimum standards of authentication and confidentiality are met. Many Web APIs and features are accessible only in a secure context. Eg.:

  • Geolocation API
  • Service Workers
  • Web Bluetooth
  • Media Capture and Streams (getUserMedia)
  • Payment Request API
  • Credential Management API
  • WebCrypto API
@basilgello
Copy link
Collaborator

Not sure if I understand your intention fully here. Can you please expand a bit on your setup / usecase? Yggstack provides SOCKS5 server and it is up to HTTP client to request HTTPS or HTTP.

@perguth perguth changed the title Transparently HTTPS Transparently HTTPS for Ygg-Ips? Apr 27, 2024
@basilgello
Copy link
Collaborator

yggstack (and yggdrasil in general) operate at tunnel-level concept. You mix L7 (application) OSI layer where HTTP/S resides with L3 (network) layer where Ygg operates. What you really likely want is to forward port 443 to yggstack: --exposetcp 443:127.0.0.1:443

@perguth
Copy link
Author

perguth commented Apr 27, 2024

Ah, no, my idea is not to expose the host machine. My focus is on webbrowsing (using Yggstack purely as a SOCKS proxy).

@perguth perguth changed the title Transparently HTTPS for Ygg-Ips? Transparently provide HTTPS for HTTP content from Ygg-Ips? Apr 27, 2024
@perguth perguth changed the title Transparently provide HTTPS for HTTP content from Ygg-Ips? Automatically provide HTTPS for HTTP content from Ygg-Ips? Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants