ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] [Master 2.2] PostgreSQL + ssl
@ 2004-04-08 20:15 Alexey Vakhov
  0 siblings, 0 replies; only message in thread
From: Alexey Vakhov @ 2004-04-08 20:15 UTC (permalink / raw)
  To: ALTLinux

Привет 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-08 20:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-08 20:15 [Comm] [Master 2.2] PostgreSQL + ssl Alexey Vakhov

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