misp-docker/ssl/generate.sh

8 lines
212 B
Bash
Raw Normal View History

2019-11-25 22:58:18 +01:00
#!/bin/bash
echo "Seriously, don't use this"
openssl dhparam -out dhparams.pem 2048
openssl req -x509 -subj '/CN=localhost' -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
cp cert.pem chain.pem