mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-15 18:13:18 +08:00
The SSL certs used for testing expired today. This patch adds new certificates that last for 100 years.
14 lines
343 B
Bash
Executable File
14 lines
343 B
Bash
Executable File
#!/bin/sh
|
|
|
|
CA_FILE_PREFIX=${CA_FILE_PREFIX:-ts_ca}
|
|
CA_KEY=${CA_KEY:-${CA_FILE_PREFIX}.key}
|
|
CA_CRT=${CA_CRT:-${CA_FILE_PREFIX}.crt}
|
|
|
|
# Generate CA private key
|
|
openssl genrsa -out ${CA_KEY} 2048
|
|
|
|
# Generate CA certificate
|
|
openssl req -new -x509 -days 36500 \
|
|
-subj '/C=SE/ST=Stockholm/L=Stockholm/O=TSCA/CN=TSCA' \
|
|
-key ts_ca.key -out ${CA_CRT}
|