generated from PlexSheep/rs-base
6 lines
203 B
Bash
6 lines
203 B
Bash
|
#!/bin/bash
|
||
|
mkdir data
|
||
|
echo create ca
|
||
|
# non-interactive and 10 years expiration
|
||
|
openssl req -x509 -nodes -newkey rsa:4096 -keyout data/key.pem -out data/cert.pem -sha256 -days 3650 -subj '/CN=localhost'
|