.NET Core cross-platform application that works as python2 SimpleHTTPServer module, but published as single binary and support https.
Only support pfx file as private key.
Current working directory will be used as webroot
directory.
If index.html
exists it will be hosted instead of directory listing.
Open command prompt or terminal:
shsn [port]
Example:
shsn.exe 8080
shsn [port] [pfx-file] [pfx-password]
Example:
shsn.exe 9000 "C:\Users\Admin\My Certs\localhost.pfx" 1234
Binaries has been published and packed using dotnet publish
and dotnet-warp
respectively.
To publish this project, go to folder that contains SimpleHTTPServer.csproj
:
dotnet publish
Then download dotnet-warp and follow its example.