Postgesql and SSL
am 28.02.2009 23:18:33 von Lukas
Hello,
I am trying to run PostgreSQL with SSL, so I compiled and linked with
options:
../configure --prefix=3D/DB --with-openssl
Configured and installed successfully.
In postgresql.conf I have option "ssl =3D on"
When starting Postgres I get error:
LOG: SSL is not supported by this build
FATAL: invalid value for parameter "ssl": 1
DEBUG: proc_exit(1)
DEBUG: shmem_exit(1)
DEBUG: exit(1)
Where is the problem? Is here versions which does not support SSL, it
would be strange..
Versions used:
PostgreSQL 8.3.4
OpenSSL 0.9.8j
--
Lukas
UAB nSoft
http://www.nsoft.lt
Lukas at nsoft.lt
+370 655 10 655
--=20
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.
--=20
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Postgesql and SSL
am 28.02.2009 23:53:37 von Glyn Astill
You defo have all the required openssl headers and libs and configure succe=
eds? It's a longshot, but I wonder if the prefix is somehow making configur=
e read the string wrong? I've never really needed to use prefix, but what h=
append if you try
../configure --prefix=3D'/DB' --with-openssl
or perhaps
../configure --with-openssl --prefix=3D/DB
--- On Sat, 28/2/09, Lukas wrote:
> From: Lukas
> Subject: [ADMIN] Postgesql and SSL
> To: pgsql-admin@postgresql.org
> Date: Saturday, 28 February, 2009, 10:18 PM
> Hello,
>=20
> I am trying to run PostgreSQL with SSL, so I compiled and
> linked with
> options:
>=20
> ./configure --prefix=3D/DB --with-openssl
>=20
> Configured and installed successfully.
> In postgresql.conf I have option "ssl =3D on"
> When starting Postgres I get error:
> LOG: SSL is not supported by this build
> FATAL: invalid value for parameter "ssl": 1
> DEBUG: proc_exit(1)
> DEBUG: shmem_exit(1)
> DEBUG: exit(1)
>=20
> Where is the problem? Is here versions which does not
> support SSL, it
> would be strange..
>=20
> Versions used:
> PostgreSQL 8.3.4
> OpenSSL 0.9.8j
>=20
>=20
>=20
> --
> Lukas
> UAB nSoft
> http://www.nsoft.lt
> Lukas at nsoft.lt
> +370 655 10 655
>=20
>=20
>=20
>=20
> --=20
> This message has been scanned for viruses and
> dangerous content by
> OpenProtect(http://www.openprotect.com), and is
> believed to be clean.
>=20
>=20
> --=20
> Sent via pgsql-admin mailing list
> (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
--=20
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Postgesql and SSL
am 01.03.2009 09:37:26 von Lukas
Hello again,
nope, no use of it.. Situation stays the same.. Does any one have more
ideas?
--
Lukas
UAB nSoft
http://www.nsoft.lt
Lukas at nsoft.lt
+370 655 10 655
> You defo have all the required openssl headers and libs and configure
> succeeds? It's a longshot, but I wonder if the prefix is somehow making
> configure read the string wrong? I've never really needed to use prefix=
,
> but what happend if you try
>
> ./configure --prefix=3D'/DB' --with-openssl
>
> or perhaps
>
> ./configure --with-openssl --prefix=3D/DB
>
>
>
> --- On Sat, 28/2/09, Lukas wrote:
>
>> From: Lukas
>> Subject: [ADMIN] Postgesql and SSL
>> To: pgsql-admin@postgresql.org
>> Date: Saturday, 28 February, 2009, 10:18 PM
>> Hello,
>>
>> I am trying to run PostgreSQL with SSL, so I compiled and
>> linked with
>> options:
>>
>> ./configure --prefix=3D/DB --with-openssl
>>
>> Configured and installed successfully.
>> In postgresql.conf I have option "ssl =3D on"
>> When starting Postgres I get error:
>> LOG: SSL is not supported by this build
>> FATAL: invalid value for parameter "ssl": 1
>> DEBUG: proc_exit(1)
>> DEBUG: shmem_exit(1)
>> DEBUG: exit(1)
>>
>> Where is the problem? Is here versions which does not
>> support SSL, it
>> would be strange..
>>
>> Versions used:
>> PostgreSQL 8.3.4
>> OpenSSL 0.9.8j
>>
>>
>>
>> --
>> Lukas
>> UAB nSoft
>> http://www.nsoft.lt
>> Lukas at nsoft.lt
>> +370 655 10 655
>>
>>
>>
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content by
>> OpenProtect(http://www.openprotect.com), and is
>> believed to be clean.
>>
>>
>> --
>> Sent via pgsql-admin mailing list
>> (pgsql-admin@postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-admin
>
>
>
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>
> --
> This message has been scanned for viruses and
> dangerous content by OpenProtect(http://www.openprotect.com), and is
> believed to be clean.
>
>
--=20
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.
--=20
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Postgesql and SSL
am 01.03.2009 13:49:33 von Thomas Pundt
Lukas schrieb:
> nope, no use of it.. Situation stays the same.. Does any one have more
> ideas?
[...]
>>> I am trying to run PostgreSQL with SSL, so I compiled and
>>> linked with
>>> options:
>>>
>>> ./configure --prefix=/DB --with-openssl
>>>
>>> Configured and installed successfully.
>>> In postgresql.conf I have option "ssl = on"
>>> When starting Postgres I get error:
>>> LOG: SSL is not supported by this build
>>> FATAL: invalid value for parameter "ssl": 1
>>> DEBUG: proc_exit(1)
>>> DEBUG: shmem_exit(1)
>>> DEBUG: exit(1)
>>>
>>> Where is the problem? Is here versions which does not
>>> support SSL, it
>>> would be strange..
>>>
>>> Versions used:
>>> PostgreSQL 8.3.4
>>> OpenSSL 0.9.8j
well, probably; in a situation like this I'd first check for any errors
from the configure step. Did it by any chance complain about not
finding the SSL library?
Next thing to check: is the postmaster linked against the SSL library?
cd /your/postgres/install/path/bin
ldd postgres|grep ssl
should output something like
libssl.so.0.9.7 => /usr/lib64/libssl.so.0.9.7 (0x0000002a95775000)
if not, SSL is likely not compiled in; go back to checking the
configure part.
If you have positively confirmed, that SSL support is compiled in,
you likely simply don't use your newly built postgres. Check paths
and start scripts and make sure, it uses your new built binaries.
If that's not it, I think you have to provide more information about
your platform.
Ciao,
Thomas
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Postgesql and SSL
am 01.03.2009 13:49:51 von Glyn Astill
have you generated the ssl certificates too?
--- On Sun, 1/3/09, Lukas wrote:
> From: Lukas
> Subject: Re: [ADMIN] Postgesql and SSL
> To: pgsql-admin@postgresql.org
> Date: Sunday, 1 March, 2009, 8:37 AM
> Hello again,
>=20
> nope, no use of it.. Situation stays the same.. Does any
> one have more
> ideas?
>=20
>=20
> --
> Lukas
> UAB nSoft
> http://www.nsoft.lt
> Lukas at nsoft.lt
> +370 655 10 655
>=20
>=20
> > You defo have all the required openssl headers and
> libs and configure
> > succeeds? It's a longshot, but I wonder if the
> prefix is somehow making
> > configure read the string wrong? I've never really
> needed to use prefix,
> > but what happend if you try
> >
> > ./configure --prefix=3D'/DB' --with-openssl
> >
> > or perhaps
> >
> > ./configure --with-openssl --prefix=3D/DB
> >
> >
> >
> > --- On Sat, 28/2/09, Lukas
> wrote:
> >
> >> From: Lukas
> >> Subject: [ADMIN] Postgesql and SSL
> >> To: pgsql-admin@postgresql.org
> >> Date: Saturday, 28 February, 2009, 10:18 PM
> >> Hello,
> >>
> >> I am trying to run PostgreSQL with SSL, so I
> compiled and
> >> linked with
> >> options:
> >>
> >> ./configure --prefix=3D/DB --with-openssl
> >>
> >> Configured and installed successfully.
> >> In postgresql.conf I have option "ssl =3D
> on"
> >> When starting Postgres I get error:
> >> LOG: SSL is not supported by this build
> >> FATAL: invalid value for parameter
> "ssl": 1
> >> DEBUG: proc_exit(1)
> >> DEBUG: shmem_exit(1)
> >> DEBUG: exit(1)
> >>
> >> Where is the problem? Is here versions which does
> not
> >> support SSL, it
> >> would be strange..
> >>
> >> Versions used:
> >> PostgreSQL 8.3.4
> >> OpenSSL 0.9.8j
> >>
> >>
> >>
> >> --
> >> Lukas
> >> UAB nSoft
> >> http://www.nsoft.lt
> >> Lukas at nsoft.lt
> >> +370 655 10 655
> >>
> >>
> >>
> >>
> >> --
> >> This message has been scanned for viruses and
> >> dangerous content by
> >> OpenProtect(http://www.openprotect.com), and is
> >> believed to be clean.
> >>
> >>
> >> --
> >> Sent via pgsql-admin mailing list
> >> (pgsql-admin@postgresql.org)
> >> To make changes to your subscription:
> >> http://www.postgresql.org/mailpref/pgsql-admin
> >
> >
> >
> >
> > --
> > Sent via pgsql-admin mailing list
> (pgsql-admin@postgresql.org)
> > To make changes to your subscription:
> > http://www.postgresql.org/mailpref/pgsql-admin
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by
> OpenProtect(http://www.openprotect.com), and is
> > believed to be clean.
> >
> >
>=20
>=20
>=20
> --=20
> This message has been scanned for viruses and
> dangerous content by
> OpenProtect(http://www.openprotect.com), and is
> believed to be clean.
>=20
>=20
> --=20
> Sent via pgsql-admin mailing list
> (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
--=20
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Postgesql and SSL
am 01.03.2009 17:54:51 von Tom Lane
Thomas Pundt writes:
> Lukas schrieb:
>>> I am trying to run PostgreSQL with SSL, so I compiled and
>>> linked with
>>> options:
>>> ./configure --prefix=/DB --with-openssl
> well, probably; in a situation like this I'd first check for any errors
> from the configure step.
Yeah. I would say this is pilot error somewhere along the line: either
the configure/build process failed, or you forgot to "make install"
afterwards, or the copy of the postmaster you're trying to start isn't
the one you built. Given the nonstandard install location specified
above, the last one seems particularly likely.
regards, tom lane
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Postgesql and SSL
am 19.03.2010 07:33:49 von Kiswono Prayogo
Hi, i had the same problem building using latest cvs, it works fine on
64-bit ubuntu, but on 32-bit ubuntu (virtualbox) when i started the
postgres it shows:
# idir=/home/`whoami`/Software/PostgreSQL-9
# sudo su -p postgres -c "$idir/bin/postgres -D $idir/data" ;
LOG: SSL is not supported by this build
FATAL: invalid value for parameter "ssl": 1
* normally on my 64-bit, it shows:
LOG: database system was shut down at 2010-03-19 12:02:00 WIT
LOG: autovacuum launcher started
LOG: database system is ready to accept connections
.... query errors goes here ...^C
LOG: received fast shutdown request
LOG: aborting any active transactions
LOG: autovacuum launcher shutting down
LOG: shutting down
LOG: database system is shut down
* my configuration (32-bit and 64-bit differ only on shared_buffers value)
# idir=/home/`whoami`/Software/PostgreSQL-9
# sudo cat $idir/data/postgresql.conf | egrep -v "^\s*(#|$)"
listen_addresses = 'localhost' # what IP address(es) to listen on;
port = 5432 # (change requires restart)
max_connections = 100 # (change requires restart)
unix_socket_directory = '/tmp' # (change requires restart)
ssl = true # (change requires restart)
password_encryption = on
shared_buffers = 28MB # min 128kB
datestyle = 'iso, mdy'
lc_messages = 'en_US.UTF-8' # locale for system
error message
lc_monetary = 'en_US.UTF-8' # locale for monetary formatting
lc_numeric = 'en_US.UTF-8' # locale for number formatting
lc_time = 'en_US.UTF-8' # locale for time formatting
default_text_search_config = 'pg_catalog.english'
* my build configuration:
# idir=/home/`whoami`/Software/PostgreSQL-9
# ./configure --with-pam --with-openssl --with-libxml --with-libxslt
--prefix=$idir && make && make install
* installed libraries (dpkg -l | grep ssl):
libssl-dev 0.9.8g-16ubuntu3.1
openssl 0.9.8g-16ubuntu3.1
libssl0.9.8 0.9.8g-16ubuntu3.1
* full script for download, compile and configuring
http://pastebin.com/vmzryH82
--
Regards,
Kiswono P
GB
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Postgesql and SSL
am 19.03.2010 07:48:17 von Kiswono Prayogo
oh yeah i forgot to show you that it's linked successfully:
# sudo ldd /home/`whoami`/Software/PostgreSQL-9/bin/* | grep ssl
libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.0.9.8 (0x00cc4000)
libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.0.9.8 (0x00214000)
libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.0.9.8 (0x00e9b000)
libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.0.9.8 (0x00110000)
libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.0.9.8 (0x00110000)
libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.0.9.8 (0x0044f000)
libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.0.9.8 (0x0061b000)
libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.0.9.8 (0x00110000)
libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.0.9.8 (0x004fb000)
libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.0.9.8 (0x00b1a000)
libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.0.9.8 (0x00284000)
libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.0.9.8 (0x00135000)
libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.0.9.8 (0x004b6000)
libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.0.9.8 (0x00603000)
On Fri, Mar 19, 2010 at 1:33 PM, Kiswono Prayogo wrote:
> Hi, i had the same problem building using latest cvs, it works fine on
> 64-bit ubuntu, but on 32-bit ubuntu (virtualbox) when i started the
> postgres it shows:
> # idir=3D/home/`whoami`/Software/PostgreSQL-9
> # sudo su -p postgres -c "$idir/bin/postgres -D $idir/data" ;
> LOG: SSL is not supported by this build
> FATAL: invalid value for parameter "ssl": 1
>
> * normally on my 64-bit, it shows:
> LOG: Â database system was shut down at 2010-03-19 12:02:00 WIT
> LOG: Â autovacuum launcher started
> LOG: Â database system is ready to accept connections
> ... query errors goes here ...^C
> LOG: Â received fast shutdown request
> LOG: Â aborting any active transactions
> LOG: Â autovacuum launcher shutting down
> LOG: Â shutting down
> LOG: Â database system is shut down
>
> * my configuration (32-bit and 64-bit differ only on shared_buffers value)
> # idir=3D/home/`whoami`/Software/PostgreSQL-9
> # sudo cat $idir/data/postgresql.conf | egrep -v "^\s*(#|$)"
> listen_addresses =3D 'localhost' Â Â Â Â Â # what=
IP address(es) to listen on;
> port =3D 5432 Â Â Â Â Â Â Â Â =C2=
=A0 Â Â Â Â Â # (change requires restart)
> max_connections =3D 100 Â Â Â Â Â Â Â =
  # (change requires restart)
> unix_socket_directory =3D '/tmp' Â Â Â Â Â # (cha=
nge requires restart)
> ssl =3D true         =C2=
=A0 Â Â Â Â Â Â # (change requires restart)
> password_encryption =3D on
> shared_buffers =3D 28MB Â Â Â Â Â Â Â =
  # min 128kB
> datestyle =3D 'iso, mdy'
> lc_messages =3D 'en_US.UTF-8' Â Â Â Â Â Â =
    # locale for system
> error message
> lc_monetary =3D 'en_US.UTF-8' Â Â Â Â Â Â =
    # locale for monetary formatting
> lc_numeric =3D 'en_US.UTF-8' Â Â Â Â Â Â =
     # locale for number formatting
> lc_time =3D 'en_US.UTF-8' Â Â Â Â Â Â =C2=
=A0 Â Â Â Â Â # locale for time formatting
> default_text_search_config =3D 'pg_catalog.english'
>
> * my build configuration:
> # idir=3D/home/`whoami`/Software/PostgreSQL-9
> # ./configure --with-pam --with-openssl --with-libxml --with-libxslt
> --prefix=3D$idir && make && make install
>
> * installed libraries (dpkg -l | grep ssl):
> libssl-dev   0.9.8g-16ubuntu3.1
> openssl    0.9.8g-16ubuntu3.1
> libssl0.9.8 Â Â 0.9.8g-16ubuntu3.1
>
> * full script for download, compile and configuring
> http://pastebin.com/vmzryH82
>
> --
> Regards,
> Kiswono P
> GB
>
--=20
Regards,
Kiswono P
GB
--=20
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Postgesql and SSL
am 19.03.2010 08:14:35 von Kiswono Prayogo
for complete build log:
http://pastebin.com/UfVFixQY
and there are no errors T^T
i didn't understand where is the possible cause of the problem..
any help, welcome ^^ thank you in advance..
On Fri, Mar 19, 2010 at 1:48 PM, Kiswono Prayogo wrote:
> oh yeah i forgot to show you that it's linked successfully:
>
> # sudo ldd /home/`whoami`/Software/PostgreSQL-9/bin/* | grep ssl
> Â Â Â Â libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.=
0.9.8 (0x00cc4000)
> Â Â Â Â libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.=
0.9.8 (0x00214000)
> Â Â Â Â libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.=
0.9.8 (0x00e9b000)
> Â Â Â Â libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.=
0.9.8 (0x00110000)
> Â Â Â Â libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.=
0.9.8 (0x00110000)
> Â Â Â Â libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.=
0.9.8 (0x0044f000)
> Â Â Â Â libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.=
0.9.8 (0x0061b000)
> Â Â Â Â libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.=
0.9.8 (0x00110000)
> Â Â Â Â libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.=
0.9.8 (0x004fb000)
> Â Â Â Â libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.=
0.9.8 (0x00b1a000)
> Â Â Â Â libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.=
0.9.8 (0x00284000)
> Â Â Â Â libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.=
0.9.8 (0x00135000)
> Â Â Â Â libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.=
0.9.8 (0x004b6000)
> Â Â Â Â libssl.so.0.9.8 =3D> /lib/i686/cmov/libssl.so.=
0.9.8 (0x00603000)
>
--=20
Regards,
Kiswono P
GB
--=20
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Postgesql and SSL
am 19.03.2010 12:49:00 von Kiswono Prayogo
ok, please ignore this thread ^^ now i know that i shouldn't using
code from cvs anyway..
On Fri, Mar 19, 2010 at 2:14 PM, Kiswono Prayogo wrote:
> for complete build log:
> http://pastebin.com/UfVFixQY
>
> and there are no errors T^T
> i didn't understand where is the possible cause of the problem..
> any help, welcome ^^ thank you in advance..
>
--
Regards,
Kiswono P
GB
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin