11 lines
443 B
Bash
Executable File
11 lines
443 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
mkdir -p config
|
|
|
|
openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -noenc -keyout config/ca.key \
|
|
-days 1024 -out config/ca.crt \
|
|
-subj "/C=FR/ST=ARA/L=Grenoble/O=Grenoble INP Root Signing Authority/OU=Ensimag/CN=Grenoble INP Root Signing Authority" \
|
|
-addext "basicConstraints=CA:TRUE" -addext "keyUsage=critical,digitalSignature,cRLSign,keyCertSign" -addext "subjectKeyIdentifier=hash"
|