ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexey Vakhov <vahov@dgap.mipt.ru>
To: ALTLinux <community@altlinux.ru>
Subject: [Comm] [Master 2.2] PostgreSQL + ssl
Date: Fri, 9 Apr 2004 00:15:57 +0400
Message-ID: <20040409001557.071c3ddc.vahov@dgap.mipt.ru> (raw)

Привет All!

Не работает соединение по ssl. Сделал как написано в документации 

#cd /var/lib/pgsql/data
#openssl req -new -text -out server.req
#openssl rsa -in privkey.pem -out server.key
#rm privkey.pem
#openssl req -x509 -in server.req -text -key server.key -out server.crt
#chmod og-rwx server.key
#chown postgres.postgres server.*

Включил ssl в postgresql.conf, а также добавил записи
hostssl    all         all         127.0.0.1         255.255.255.255 trust
hostssl    all         all         localhost         255.255.255.255 trust
в pg_hba.conf

Получаю:
$psql -h localhost TestDB
psql: не получилось установить SSL-соединение: No SSL error reported
и также
#cat /var/log/messages
postgres[27620]: [38] LOG:  failed to initialize SSL connection: PRNG not seeded

Как с этим бороться? В интернете нашёл только, что это связано с
генератором псевдорандомных чисел в openssl, но у меня сервис random
поднят, cat /dev/urandom выдает кучу случайных чисел ;-)


Система Master2.2
#rpm -qa | grep ssl
openssl-0.9.6k-alt0.2.M22
libssl-0.9.6k-alt0.2.M22
# rpm -qa | grep postgres
postgresql-server-7.3.4-alt1.M22
postgresql-7.3.4-alt1.M22

Спасибо.
-- 
Alexey  mailto:vahov@dgap.mipt.ru


                 reply	other threads:[~2004-04-08 20:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040409001557.071c3ddc.vahov@dgap.mipt.ru \
    --to=vahov@dgap.mipt.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git