Since the script create_ssl_certs.sh is executed from inside the container, the directory is not the host one, but the container one.
10 lines
199 B
Bash
Executable File
10 lines
199 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
postgres_service_dir="$1"
|
|
|
|
cd "$postgres_service_dir"
|
|
mkdir certs && cd certs
|
|
openssl req -new -newkey rsa:4096 -x509 -days 365000 -nodes -out server.crt -keyout server.key -batch
|