public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Restrict site access by SSL Client Cert?
@ 2012-02-15 14:46 Tanstaafl
  2012-02-15 15:19 ` Michael Mol
  2012-02-15 15:46 ` Paul Hartman
  0 siblings, 2 replies; 4+ messages in thread
From: Tanstaafl @ 2012-02-15 14:46 UTC (permalink / raw
  To: gentoo-user

Hi everyone,

I know that you can restrict access to a certain site using either Basic 
HTTP Auth or Digest Auth, but I was wondering - can you do the same with 
an SSL Client Certificate?

I'd like to prevent access to an ancient web based database to only 
users that have a Client Cert that I created for them installed.

Is this possible? I'd also like to provide for IP based exceptions if 
possible, but if I can't do both, I'll just install the Cert for everyone.

Thanks,

Charles



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Restrict site access by SSL Client Cert?
  2012-02-15 14:46 [gentoo-user] Restrict site access by SSL Client Cert? Tanstaafl
@ 2012-02-15 15:19 ` Michael Mol
  2012-02-15 15:46 ` Paul Hartman
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Mol @ 2012-02-15 15:19 UTC (permalink / raw
  To: gentoo-user

On Wed, Feb 15, 2012 at 9:46 AM, Tanstaafl <tanstaafl@libertytrek.org> wrote:
> Hi everyone,
>
> I know that you can restrict access to a certain site using either Basic
> HTTP Auth or Digest Auth, but I was wondering - can you do the same with an
> SSL Client Certificate?
>
> I'd like to prevent access to an ancient web based database to only users
> that have a Client Cert that I created for them installed.
>
> Is this possible? I'd also like to provide for IP based exceptions if
> possible, but if I can't do both, I'll just install the Cert for everyone.

Two ways (that I know of) to do this:

1) Configure a front-end proxy like squid to do it.
2) Configure Apache to do it.

I haven't done it myself, though, and I hear the error messages the
OpenSSL libraries give you are cryptic.

-- 
:wq



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Restrict site access by SSL Client Cert?
  2012-02-15 14:46 [gentoo-user] Restrict site access by SSL Client Cert? Tanstaafl
  2012-02-15 15:19 ` Michael Mol
@ 2012-02-15 15:46 ` Paul Hartman
  2012-02-15 16:24   ` Tanstaafl
  1 sibling, 1 reply; 4+ messages in thread
From: Paul Hartman @ 2012-02-15 15:46 UTC (permalink / raw
  To: gentoo-user

On Wed, Feb 15, 2012 at 8:46 AM, Tanstaafl <tanstaafl@libertytrek.org> wrote:
> Hi everyone,
>
> I know that you can restrict access to a certain site using either Basic
> HTTP Auth or Digest Auth, but I was wondering - can you do the same with an
> SSL Client Certificate?

Yes, you can. The specifics of how depend on what web server you're using.

For Apache, there are some examples of different scenarios here:
https://httpd.apache.org/docs/2.0/ssl/ssl_howto.html#allclients

> I'd also like to provide for IP based exceptions if possible

Trivial in Apache using mod_authz_host which is made for that kind of
thing. :)  You can combine the two access methods (allow all if it's
coming from your company's internal IP, otherwise require
certificate).



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Restrict site access by SSL Client Cert?
  2012-02-15 15:46 ` Paul Hartman
@ 2012-02-15 16:24   ` Tanstaafl
  0 siblings, 0 replies; 4+ messages in thread
From: Tanstaafl @ 2012-02-15 16:24 UTC (permalink / raw
  To: gentoo-user

On 2012-02-15 10:46 AM, Paul Hartman <paul.hartman+gentoo@gmail.com> wrote:
> On Wed, Feb 15, 2012 at 8:46 AM, Tanstaafl<tanstaafl@libertytrek.org>  wrote:
>> Hi everyone,
>>
>> I know that you can restrict access to a certain site using either Basic
>> HTTP Auth or Digest Auth, but I was wondering - can you do the same with an
>> SSL Client Certificate?
>
> Yes, you can. The specifics of how depend on what web server you're using.
>
> For Apache, there are some examples of different scenarios here:
> https://httpd.apache.org/docs/2.0/ssl/ssl_howto.html#allclients
>
>> I'd also like to provide for IP based exceptions if possible
>
> Trivial in Apache using mod_authz_host which is made for that kind of
> thing. :)  You can combine the two access methods (allow all if it's
> coming from your company's internal IP, otherwise require
> certificate).

Perfect, thanks Paul (and yes this is with Apache)...

Glad to know I can do it, hopefully I can get it working without having 
to sign up to yet another email list to ask for help... ;)



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-15 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-15 14:46 [gentoo-user] Restrict site access by SSL Client Cert? Tanstaafl
2012-02-15 15:19 ` Michael Mol
2012-02-15 15:46 ` Paul Hartman
2012-02-15 16:24   ` Tanstaafl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox