I would like to use smart card based authentication on the Django development server, as it is the universally accepted means of authentication where I live.
With Apache i can enable it by creating a .htaccess
file in the directory that requires authentication:
SSLVerifyClient require
SSLVerifyDepth 2
And in the virtual host:
<Directory /var/www/www/secure>
Options Indexes FollowSymLinks MultiViews
AllowOverride AuthConfig Options
Order allow,deny
allow from all
</Directory>
And by referring to the certificates and revocation lists like this:
SSLCACertificateFile /etc/apache2/certificate.crt
SSLCARevocationPath /etc/apache2/crl
It's quite annoying not having this functionality for testing and development purposes in Django. Any ideas on how to set it up?
Edit: thanks for your answer, Martin, but it has not really helped gotten me where I want, yet. Anyways, now I have opened a bounty for someone to answer the question by providing a small piece of example code/or more clarification on what to read or where to start.