https://github.com/mongoexpuser/non-blocking-java-https-server-with-no-external-framework
A simple vanilla non-blocking Java HTTPS server (No external framework)
https://github.com/mongoexpuser/non-blocking-java-https-server-with-no-external-framework
external-framework java java-21 non-blocking tls-ssl web-server
Last synced: 9 months ago
JSON representation
A simple vanilla non-blocking Java HTTPS server (No external framework)
- Host: GitHub
- URL: https://github.com/mongoexpuser/non-blocking-java-https-server-with-no-external-framework
- Owner: MongoExpUser
- License: mit
- Created: 2023-09-25T01:52:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-02T22:46:18.000Z (about 2 years ago)
- Last Synced: 2025-01-26T19:37:23.819Z (11 months ago)
- Topics: external-framework, java, java-21, non-blocking, tls-ssl, web-server
- Language: Java
- Homepage:
- Size: 329 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Non-blocking-Java-HTTPS-Server
A simple vanilla non-blocking Java HTTPS server (No external framework)
### A Vanilla Java HTTPS Server's Rendered Page

### 1) Compile and Run WebServer.java:
* Compile in verbose mode as:
javac WebServer.java -g -verbose
* Run/Start Server as:
java WebServer
### 2) Generate the keystore.jks file (On line 479 of WebServer.java):
* Use the commands below on Linux/Ubuntu and MacOS (or equivalent commands on Windows):
** Command 1
openssl pkcs12 -export -out keystore.p12 -inkey key.pem -in cert.pem
** Command 2
keytool -importkeystore -destkeystore keystore.jks -srcstoretype PKCS12 -srckeystore keystore.p12
where:
key.pem is the SSL/TLS key file.
cert.pem is the SSL/TLS certificate file.
# License
Copyright © 2023. MongoExpUser
Licensed under the MIT license.