dufs/tests/data/generate_tls_certs.sh
2022-06-12 08:43:50 +08:00

3 lines
180 B
Bash
Executable file

#!/usr/bin/env bash
openssl req -subj '/CN=localhost' -x509 -newkey rsa:4096 -keyout key_pkcs8.pem -out cert.pem -nodes -days 3650
openssl rsa -in key_pkcs8.pem -out key_pkcs1.pem