Thread: How to tell if a connection is SSL or not

How to tell if a connection is SSL or not

From
Mike Nolan
Date:
Is there an easy way to tell from the server side which active
connections are using SSL?

Specifically, I'm trying to determine if I have PHP connecting with SSL,
but unlike psql it doesn't give back any information about the cipher strength.

It doesn't appear that any of the connection logging options include
that information.
--
Mike Nolan

Re: How to tell if a connection is SSL or not

From
Tom Lane
Date:
Mike Nolan <nolan@gw.tssi.com> writes:
> Is there an easy way to tell from the server side which active
> connections are using SSL?

I'd suggest sniffing the connection traffic (eg, with tcpdump) and
seeing if you see any readable ASCII in it.  That's the only way to
be absolutely certain ...

            regards, tom lane