| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | set -ex |
| 3 | # generate CA's key |
| 4 | opensslscip-shell system . . openssl. genrsa -aes256 -passout pass:1 -out ca.key.pem 4096 |
| 5 | opensslscip-shell system . . openssl. rsa -passin pass:1 -in ca.key.pem -out ca.key.pem.tmp |
| 6 | mvscip-shell system . . mv. ca.key.pem.tmp ca.key.pem |
| 7 | |
| 8 | opensslscip-shell system . . openssl. req -config openssl.cnf -key ca.key.pem -new -x509 -days 7300 -sha256 -extensions v3_ca -out ca.pem |