xrfragment/serve

4 lines
157 B
Bash
Executable File

#!/bin/bash
[[ ! -f cert.pem ]] && openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
http-server -c-1 -S -C cert.pem .