internetee-registry/test/fixtures/files/test_ca/prepare_root_ca.sh
Maciej Szlosarczyk e08f69a1cc Add test CA to files fixtures
There seems to be an issue with the default configuration, files are
missing and we depend on them for the tests to run.
2020-05-22 21:42:14 +05:00

8 lines
280 B
Bash
Executable file

# Prepare required files
touch index.txt
echo 1000 > serial
echo 1000 > crlnumber
# Generate Root CA.
openssl genrsa -aes256 -out private/ca.key.pem 4096
openssl req -config openssl.cnf -new -x509 -days 365 -key private/ca.key.pem -sha256 -extensions v3_ca -out certs/ca.crt.pem