Re: allow client certs as alternative to basic auth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- "Andrà Pinto" <xandrepintox@xxxxxxxxx> wrote:

> > why when the user put a valid certificate the server still asking
> user 
> > name and
> > password??

Because "Satisfy any", in fact, doesn't.
dev@ is looking into making this an option.

> > <Directory /usr/local/apache2/htdocs/subarea>
> > #   Inside the subarea any Intranet access is allowed
> > #   but from the Internet only HTTPS + Strong-Cipher + Password
> > #   or the alternative HTTPS + Strong-Cipher + Client-Certificate
> >
> > #   If HTTPS is used, make sure a strong cipher is used.
> > #   Additionally allow client certs as alternative to basic auth.
> > SSLVerifyClient      optional
> > SSLVerifyDepth       1
> > SSLOptions           +FakeBasicAuth +StrictRequire
> > SSLRequire           %{SSL_CIPHER_USEKEYSIZE}>= 128
> >
> > #   Force clients from the Internet to use HTTPS
> > RewriteEngine        on
> > RewriteCond          %{REMOTE_ADDR} !^192\.168\.1\.[0-9]+$
> > RewriteCond          %{HTTPS} !=on
> > RewriteRule          .* - [F]
> >
> > #   Allow Network Access and/or Basic Auth
> > Satisfy              any
> >
> > #   Network Access Control
> > Order                deny,allow
> > Deny                 from all
> > Allow                192.168.1.0/24
> >
> > #   HTTP Basic Authentication
> > AuthType             basic
> > AuthName             "Protected Intranet Area"
> > AuthBasicProvider    file
> > AuthUserFile         conf/protected.passwd
> > Require              valid-user
> > </Directory>/
> >
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

-- 
Igor GaliÄ

Tel: +43 (0) 664 886 22 883
Mail: i.galic@xxxxxxxxxxxxxx
URL: http://brainsware.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux