xrfragment/serve

4 lines
157 B
Plaintext
Raw Normal View History

2023-04-20 18:49:18 +02:00
#!/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 .