d4-core/server/gen_cert/gen_root.sh

6 lines
198 B
Bash
Raw Normal View History

2019-01-17 12:13:35 +01:00
#!/usr/bin/env bash
# Create Root key
2019-01-17 12:13:35 +01:00
openssl genrsa -out rootCA.key 4096
# Create and Sign the Root CA Certificate
2019-01-17 12:13:35 +01:00
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.crt