pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedJDBC compression over SSL
7+ messages / 4 participants
[nested] [flat]
* JDBC compression over SSL
@ 2015-01-05 11:06 Edoardo Innocenti - SDB Information Technology Srl <edoardo.innocenti@tech.sdb.it>
2015-01-05 13:39 ` Re: JDBC compression over SSL Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 7+ messages in thread
From: Edoardo Innocenti - SDB Information Technology Srl @ 2015-01-05 11:06 UTC (permalink / raw)
To: pgsql-jdbc
Hi,
I configure PostgreSQl 9.3 to use compression over SSL connection successfully (PG_Conn), but I am not able to find how to configure JDBC to use compression. I import server.crt (self-signed) in keystore and I can do a SSL connection successfully via JDBC but not compression.
This message is for the recipients only. If you receive it in error, please notify the sender and delete it together with any attachments. For any further information, including our privacy policy please refer to http://www.savinodelbene.com/privacy/
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: JDBC compression over SSL
2015-01-05 11:06 JDBC compression over SSL Edoardo Innocenti - SDB Information Technology Srl <edoardo.innocenti@tech.sdb.it>
@ 2015-01-05 13:39 ` Dave Cramer <pg@fastcrypt.com>
2015-01-05 13:49 ` Re: JDBC compression over SSL Craig Ringer <craig@2ndquadrant.com>
0 siblings, 1 reply; 7+ messages in thread
From: Dave Cramer @ 2015-01-05 13:39 UTC (permalink / raw)
To: Edoardo Innocenti - SDB Information Technology Srl <edoardo.innocenti@tech.sdb.it>; +Cc: pgsql-jdbc
I do not think there currently is a way to enable compression in the driver
anyone ?
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
On 5 January 2015 at 06:06, Edoardo Innocenti - SDB Information Technology
Srl <edoardo.innocenti@tech.sdb.it> wrote:
> Hi,
>
> I configure PostgreSQl 9.3 to use compression over SSL connection
> successfully (PG_Conn), but I am not able to find how to configure JDBC to
> use compression. I import server.crt (self-signed) in keystore and I can do
> a SSL connection successfully via JDBC but not compression.
> This message is for the recipients only. If you receive it in error,
> please notify the sender and delete it together with any attachments. For
> any further information, including our privacy policy please refer to
> http://www.savinodelbene.com/privacy/
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: JDBC compression over SSL
2015-01-05 11:06 JDBC compression over SSL Edoardo Innocenti - SDB Information Technology Srl <edoardo.innocenti@tech.sdb.it>
2015-01-05 13:39 ` Re: JDBC compression over SSL Dave Cramer <pg@fastcrypt.com>
@ 2015-01-05 13:49 ` Craig Ringer <craig@2ndquadrant.com>
2015-01-05 13:51 ` Re: JDBC compression over SSL Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 7+ messages in thread
From: Craig Ringer @ 2015-01-05 13:49 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; Edoardo Innocenti - SDB Information Technology Srl <edoardo.innocenti@tech.sdb.it>; +Cc: pgsql-jdbc
On 01/05/2015 09:39 PM, Dave Cramer wrote:
> I do not think there currently is a way to enable compression in the driver
>
> anyone ?
It'd have to be done by providing a custom SSLSocketFactory, which
PgJDBC supports. I'm not sure that JSSE's SSL implementation supports
SSL compression though.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: JDBC compression over SSL
2015-01-05 11:06 JDBC compression over SSL Edoardo Innocenti - SDB Information Technology Srl <edoardo.innocenti@tech.sdb.it>
2015-01-05 13:39 ` Re: JDBC compression over SSL Dave Cramer <pg@fastcrypt.com>
2015-01-05 13:49 ` Re: JDBC compression over SSL Craig Ringer <craig@2ndquadrant.com>
@ 2015-01-05 13:51 ` Dave Cramer <pg@fastcrypt.com>
2015-01-05 14:14 ` Re: JDBC compression over SSL Craig Ringer <craig@2ndquadrant.com>
0 siblings, 1 reply; 7+ messages in thread
From: Dave Cramer @ 2015-01-05 13:51 UTC (permalink / raw)
To: Craig Ringer <craig@2ndquadrant.com>; +Cc: Edoardo Innocenti - SDB Information Technology Srl <edoardo.innocenti@tech.sdb.it>; pgsql-jdbc
A quick search turned up something, but it seems to have considerable rot
https://svn.jfire.org/svn/main/old.stuff.about.to.be.deleted/org.nightlabs.rmissl/src/org/nightlabs/...
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
On 5 January 2015 at 08:49, Craig Ringer <craig@2ndquadrant.com> wrote:
> On 01/05/2015 09:39 PM, Dave Cramer wrote:
> > I do not think there currently is a way to enable compression in the
> driver
> >
> > anyone ?
>
> It'd have to be done by providing a custom SSLSocketFactory, which
> PgJDBC supports. I'm not sure that JSSE's SSL implementation supports
> SSL compression though.
>
> --
> Craig Ringer http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Training & Services
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: JDBC compression over SSL
2015-01-05 11:06 JDBC compression over SSL Edoardo Innocenti - SDB Information Technology Srl <edoardo.innocenti@tech.sdb.it>
2015-01-05 13:39 ` Re: JDBC compression over SSL Dave Cramer <pg@fastcrypt.com>
2015-01-05 13:49 ` Re: JDBC compression over SSL Craig Ringer <craig@2ndquadrant.com>
2015-01-05 13:51 ` Re: JDBC compression over SSL Dave Cramer <pg@fastcrypt.com>
@ 2015-01-05 14:14 ` Craig Ringer <craig@2ndquadrant.com>
2015-01-05 15:36 ` Re: JDBC compression over SSL Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 7+ messages in thread
From: Craig Ringer @ 2015-01-05 14:14 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; +Cc: Edoardo Innocenti - SDB Information Technology Srl <edoardo.innocenti@tech.sdb.it>; pgsql-jdbc
On 01/05/2015 09:51 PM, Dave Cramer wrote:
> A quick search turned up something, but it seems to have considerable rot
> https://svn.jfire.org/svn/main/old.stuff.about.to.be.deleted/org.nightlabs.rmissl/src/org/nightlabs/...
>
Yep... and I'm not sure it's actually doing SSL compression, rather than
compression of the stream *inside* the SSL socket.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: JDBC compression over SSL
2015-01-05 11:06 JDBC compression over SSL Edoardo Innocenti - SDB Information Technology Srl <edoardo.innocenti@tech.sdb.it>
2015-01-05 13:39 ` Re: JDBC compression over SSL Dave Cramer <pg@fastcrypt.com>
2015-01-05 13:49 ` Re: JDBC compression over SSL Craig Ringer <craig@2ndquadrant.com>
2015-01-05 13:51 ` Re: JDBC compression over SSL Dave Cramer <pg@fastcrypt.com>
2015-01-05 14:14 ` Re: JDBC compression over SSL Craig Ringer <craig@2ndquadrant.com>
@ 2015-01-05 15:36 ` Tom Lane <tgl@sss.pgh.pa.us>
2015-01-09 03:25 ` Re: JDBC compression over SSL Craig Ringer <craig@2ndquadrant.com>
0 siblings, 1 reply; 7+ messages in thread
From: Tom Lane @ 2015-01-05 15:36 UTC (permalink / raw)
To: Craig Ringer <craig@2ndquadrant.com>; +Cc: Dave Cramer <pg@fastcrypt.com>; Edoardo Innocenti - SDB Information Technology Srl <edoardo.innocenti@tech.sdb.it>; pgsql-jdbc
Craig Ringer <craig@2ndquadrant.com> writes:
> Yep... and I'm not sure it's actually doing SSL compression, rather than
> compression of the stream *inside* the SSL socket.
Worth noting here is that many/most people have abandoned use of SSL
compression because it is now known to render the stream more
decryptable. I do not know whether that objection also applies to
doing separate compression "inside the socket" as you put it.
regards, tom lane
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: JDBC compression over SSL
2015-01-05 11:06 JDBC compression over SSL Edoardo Innocenti - SDB Information Technology Srl <edoardo.innocenti@tech.sdb.it>
2015-01-05 13:39 ` Re: JDBC compression over SSL Dave Cramer <pg@fastcrypt.com>
2015-01-05 13:49 ` Re: JDBC compression over SSL Craig Ringer <craig@2ndquadrant.com>
2015-01-05 13:51 ` Re: JDBC compression over SSL Dave Cramer <pg@fastcrypt.com>
2015-01-05 14:14 ` Re: JDBC compression over SSL Craig Ringer <craig@2ndquadrant.com>
2015-01-05 15:36 ` Re: JDBC compression over SSL Tom Lane <tgl@sss.pgh.pa.us>
@ 2015-01-09 03:25 ` Craig Ringer <craig@2ndquadrant.com>
0 siblings, 0 replies; 7+ messages in thread
From: Craig Ringer @ 2015-01-09 03:25 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Dave Cramer <pg@fastcrypt.com>; Edoardo Innocenti - SDB Information Technology Srl <edoardo.innocenti@tech.sdb.it>; pgsql-jdbc
On 5 January 2015 at 23:36, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Craig Ringer <craig@2ndquadrant.com> writes:
> > Yep... and I'm not sure it's actually doing SSL compression, rather than
> > compression of the stream *inside* the SSL socket.
>
> Worth noting here is that many/most people have abandoned use of SSL
> compression because it is now known to render the stream more
> decryptable. I do not know whether that objection also applies to
> doing separate compression "inside the socket" as you put it.
>
>
Whether or not it does, if it's not actual SSL compression it won't
interoperate with PostgreSQL - as you know, PostgreSQL doesn't support data
stream compression on the socket.
Some people are trying to use SSL compression as a workaround for this. I
think the real answer is probably to just add PostgreSQL protocol-level
support for compression, rather than trying to (ab)use SSL for it.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2015-01-09 03:25 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-01-05 11:06 JDBC compression over SSL Edoardo Innocenti - SDB Information Technology Srl <edoardo.innocenti@tech.sdb.it>
2015-01-05 13:39 ` Dave Cramer <pg@fastcrypt.com>
2015-01-05 13:49 ` Craig Ringer <craig@2ndquadrant.com>
2015-01-05 13:51 ` Dave Cramer <pg@fastcrypt.com>
2015-01-05 14:14 ` Craig Ringer <craig@2ndquadrant.com>
2015-01-05 15:36 ` Tom Lane <tgl@sss.pgh.pa.us>
2015-01-09 03:25 ` Craig Ringer <craig@2ndquadrant.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox