-
Notifications
You must be signed in to change notification settings - Fork 360
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
Support for SNI and dynamic certificate #98
base: master
Are you sure you want to change the base?
Conversation
- Dynamically generate a certificate based on client request using Server Name Idicator - Sign the new certificate with either a static CA certificate, or with a newly generated CA - Add config options to specify a path to static CA certificate - *** NOTE ***: This version only works on windows platform
Conflicts: fakenet/configs/default.ini fakenet/listeners/HTTPListener.py
Great Pull Request 👍 Is there any specific reason this was not merged ? I also don't understand why it is noted as working only on Windows. I tested it in a Linux multihost setup and it works great (with some minor fixes gaelmuller@549e89a) |
@gaelmuller This works well on windows systems because we can use
|
This also lacked any fallback for when SNI can't access |
- Replaced expired CA certificate - Changed certificate sigining algorithm to SHA256 - Added extensions to generated X509 certificates to support interaction with latest browsers Thanks to Nhan Huynh for implementing this feature :)
else: | ||
ctx.sni_callback = self.sni_callback | ||
ctx.load_cert_chain(certfile=self.ca_cert, keyfile=self.ca_key) | ||
return ctx.wrap_socket(s, server_side=True) |
Check failure
Code scanning / CodeQL
Use of insecure SSL/TLS version High
call to ssl.SSLContext
Insecure SSL/TLS protocol version TLSv1_1 allowed by
call to ssl.SSLContext
@htnhan Could you sign Google's CLA agreement? You can find it here: https://cla.developers.google.com/clas Thanks, Nhan! |
Signed. Thank you @tinajohnson for merging this :) |
🥳 |
Server Name Idicator
with a newly generated CA