Skip to content

gallbotond/server-up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple website to check if a server is up by being hosted from the said machine.

It uses https and a self-signed certificate. The multithreaded server is written in Python.

How to use

  1. Clone the repository
git clone https://github.com/gallbotond/server-up.git
  1. At the root of the project create a /secrets folder, and open it
mkdir secrets
cd secrets
  1. Create and edit the openssl.cnf with your own data
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no

[req_distinguished_name]
C = US
ST = California
L = San Francisco
O = My Company
OU = My Department
CN = localhost

[v3_req]
keyUsage = keyEncipherment, dataEncipherment
extendedKeyUsage = serverAuth
subjectAltName = @alt_names

[alt_names]
DNS.1 = localhost
  1. Before running the server, generate an SSL certificate and a private key
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -config ./openssl.cnf
  1. Start the https server with server-up.py

Make sure you are in the website folder!

python3 server-up.py

Extras

It will display basic information about the client's browser and operating system.

on google chrome

If it doesn't, it means the browser is privacy respecting, and blocked the requests.

on librewolf (based on firefox)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published