mirror of
https://github.com/telanflow/mps.git
synced 2025-10-05 16:27:06 +08:00
9 lines
277 B
Bash
Executable File
9 lines
277 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
# generate CA's key
|
|
openssl genrsa -aes256 -passout pass:1 -out ca.key 4096
|
|
openssl rsa -passin pass:1 -in ca.key -out ca.key.tmp
|
|
mv ca.key.tmp ca.key
|
|
|
|
openssl req -config openssl.cnf -key ca.key -new -x509 -days 7300 -sha256 -extensions v3_ca -out ca.crt
|