-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Implement HTTPS Support with SSL/TLS and HTTP to HTTPS Redirection #15
Implement HTTPS Support with SSL/TLS and HTTP to HTTPS Redirection #15
Conversation
…LConfiguration, and update related files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Guhapriya01,
Thank you for your prompt work on this issue. I appreciate your dedication to the project.
I have reviewed your work, and I need some changes.
- resolve these conflicts.
This branch has conflicts that must be resolved
to resolve conflicts before continuing.
Conflicting files
src/main/java/com/httpserver/HttpServerApplication.java
src/main/java/com/httpserver/config/Configuration.java
src/main/java/com/httpserver/config/ConfigurationManager.java
src/main/java/com/httpserver/core/HttpConnectionWorkerThread.java
src/main/java/com/httpserver/core/ServerListenerThread.java
Once again, thank you for your contribution! ❤️
Thank you so much @ajaynegi45 for reviewing my work and for your kind words! I will resolve the conflicts and make the necessary changes to ensure everything works smoothly. I'll get back to you as soon as it's done. |
Just fetch update from the upstream main branch |
Hi @ajaynegi45, I’ve committed the changes and resolved the conflicts. Let me know if you need anything else! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Guhapriya01,
Thank you for your prompt work on this issue. I appreciate your dedication to the project.
I have reviewed your work, and I'm pleased to inform you that I have merged your pull request. Your changes looks fantastic, and it aligns perfectly with the project's design and usability goals. Great job!
If you have any more contributions or if there's anything else you'd like to work on in the future, please don't hesitate to let us know. Your efforts are valuable to the project's success.
Once again, thank you for your contribution! ❤️
Thank you @ajaynegi45! 😊 I'm glad the changes worked well. Looking forward to contributing more! |
This pull request implements HTTPS and SSL/TLS support for the Java HTTP server and introduces HTTP to HTTPS redirection.
Changes Made:
SSL/TLS Support:
keytool
for development and testing.8043
.HTTP to HTTPS Redirection:
8080
.301 status code
.Output:
To verify the implementation, you can test the following commands:
HTTP to HTTPS Redirection:
Response:
Accessing the HTTPS Server:
Response:
Steps to Create a Self-Signed Certificate:
Use the following command to create a keystore and generate a self-signed SSL certificate:
keystore.jks
file will be created in the current directory. This file contains the self-signed certificate.In the
ssl-config.json
file, replace the keystore path with the path where you created the file, and use the same password for both the keystore and key password.Related issues : #7
Please review the changes and let me know if any modifications are needed!