mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-01 10:09:57 +00:00
16 lines
348 B
Bash
16 lines
348 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -xe
|
||
|
|
||
|
certstrap init --common-name pictrsCA
|
||
|
certstrap request-cert --common-name postgres --domain localhost
|
||
|
certstrap sign postgres --CA pictrsCA
|
||
|
|
||
|
mkdir -p ./storage/
|
||
|
sudo mkdir -p ./storage/postgres
|
||
|
|
||
|
sudo tee ./storage/postgres/pg_hba.conf << EOF
|
||
|
host all all all trust
|
||
|
hostssl all all all cert clientcert=verify-full
|
||
|
EOF
|