1
mirror of https://github.com/canokeys/canokey-nrf52.git synced 2024-09-16 16:48:40 +08:00
canokey-nrf52/utils/gen_attestation_ca.sh
2022-08-19 21:31:51 +08:00

5 lines
220 B
Bash
Executable File

#!/bin/bash
set -e
openssl genrsa -out ca.key 2048
openssl req -config ./attestation-ca-cert.cnf -extensions ca_extensions_sec -x509 -days 7120 -new -key ca.key -nodes -out ca.pem
echo 01 >ca.srl # create the serial file