Почему ключ шифрования не работает в Postgresql TDE во время установки? «Неизвестные данные, полученные от encryption_key_command» - PullRequest
2 голосов
/ 05 апреля 2020

Я пытаюсь установить Postgresql TDE от Cybertech (https://www.cybertec-postgresql.com/), в частности, версию 9.6.12.

Я следовал всему руководству по установке по умолчанию:

$ wget https://download.cybertec-postgresql.com/postgresql-9.6.12-tde.tar.gz
$ sudo apt-get install libreadline-dev zlibc zlib1g-dev bison flex libssl-dev openssl libperl-dev python-dev

Я создал оболочку /opt/pg_key.sh с таким содержимым:

#! / Bin / sh

echo 882fb7c12e80280fd664c69d2d636913

$ chmod +x /opt/pg_key.sh
$ tar xvfz postgresql-9.6.12-tde.tar.gz
$ cd postgresql-9.6.12-tde/
$ ./configure --prefix /usr/local/pgsql/ --with-openssl  --with-perl --with-python
$ sudo make install
$ cd contrib/
$ sudo make install
$ sudo chown user:user /usr/local/pgsql/data/
$ initdb -D /usr/local/pgsql/data/ -K /opt/pg_key.sh

У меня есть ошибка в этой последней команде:

The files belonging to this database system will be owned by user
"user". This user must also own the server process.

The database cluster will be initialized with locale "en_US.UTF-8".
The default database encoding has accordingly been set to "UTF8". The
default text search configuration will be set to "english".

Data page checksums are disabled.
Data encryption is enabled. 
fixing permissions on existing directory /usr/local/pgsql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... FATAL:  Unknown data received from encryption_key_command
child process exited with exit code 1
initdb: removing contents of data directory "/usr/local/pgsql/data"

Заранее спасибо

...