pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedssl-info, enforcing list of common-names
2+ messages / 2 participants
[nested] [flat]
* ssl-info, enforcing list of common-names
@ 2008-10-01 17:10 Craig Perras <cperras@u.washington.edu>
2009-01-08 03:19 ` Re: ssl-info, enforcing list of common-names Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 2+ messages in thread
From: Craig Perras @ 2008-10-01 17:10 UTC (permalink / raw)
To: pgsql-admin
Hi -
A couple things. I noticed that these two functions return NULL (or empty
string):
select ssl_issuer_dn();
select ssl_client_dn();
However, I can get specific fields:
select '/CN=' || ssl_issuer_field('commonName')
|| '/C=' || ssl_issuer_field('countryName')
|| '/O=' || ssl_issuer_field('organizationName')
;
--returns "/CN=UW Services CA/C=US/O=University of Washington"
I'm thinking of using an authorization scheme in which I check a list of
valid certificate common-names, and, if the current client has no cert or
is not in the list, they have no access (maybe force a logout). Is this
feasable and/or advisable? I'll only have a single trusted CA.
Any help is appreciated!
thanks,
--craig
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: ssl-info, enforcing list of common-names
2008-10-01 17:10 ssl-info, enforcing list of common-names Craig Perras <cperras@u.washington.edu>
@ 2009-01-08 03:19 ` Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Momjian @ 2009-01-08 03:19 UTC (permalink / raw)
To: Craig Perras <cperras@u.washington.edu>; +Cc: pgsql-admin
Would someone please reply this question.
---------------------------------------------------------------------------
Craig Perras wrote:
> Hi -
>
> A couple things. I noticed that these two functions return NULL (or empty
> string):
>
> select ssl_issuer_dn();
> select ssl_client_dn();
>
> However, I can get specific fields:
>
> select '/CN=' || ssl_issuer_field('commonName')
> || '/C=' || ssl_issuer_field('countryName')
> || '/O=' || ssl_issuer_field('organizationName')
> ;
>
> --returns "/CN=UW Services CA/C=US/O=University of Washington"
>
> I'm thinking of using an authorization scheme in which I check a list of
> valid certificate common-names, and, if the current client has no cert or
> is not in the list, they have no access (maybe force a logout). Is this
> feasable and/or advisable? I'll only have a single trusted CA.
>
> Any help is appreciated!
>
> thanks,
> --craig
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2009-01-08 03:19 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-10-01 17:10 ssl-info, enforcing list of common-names Craig Perras <cperras@u.washington.edu>
2009-01-08 03:19 ` Bruce Momjian <bruce@momjian.us>
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