Skip to content

This is a simple http file server to access your files via webbrowser.

License

Notifications You must be signed in to change notification settings

Chainski/HTTPS-FILE-SERVER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTPS-FILE-SERVER

  • This is a simple http file server to access your files via webbrowser.

Preview

image

Support Python Version

  • Python 3.10+

Dependencies

  • run install.bat

Why choose

  • Good UI
  • Lightweight
  • SSL support
  • Easy to use

Usage

python https-file-server

Mandatory SSL

This script must be used with a certificate in order to work so, you need to generate one:

Open Powershell as admin and enter the command below

$cert = New-SelfSignedCertificate -Subject "localhost" -TextExtension @("2.5.29.17={text}DNS=localhost&IPAddress=127.0.0.1") -CertStoreLocation cert:\LocalMachine\My 
$pwd = ConvertTo-SecureString -String "httpfileserver" -Force -AsPlainText
Export-PfxCertificate -Cert $cert -FilePath $env:userprofile\downloads\cert.pfx -Password $pwd

Convert the .pfx file to a .pem extension using

openssl pkcs12 -in cert.pfx -out cert.pem -nodes

After converting the certificate move it to the same directory as the script then run

python https-file-server.py