title: Django development server smart card authentication
body: <p>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.</p>
  
  <p>With Apache i can enable it by creating a <code>.htaccess</code> file in the directory that requires authentication:</p>
  
  <pre><code>SSLVerifyClient require
  SSLVerifyDepth 2
  </code></pre>
  
  <p>And in the virtual host:</p>
  
  <pre><code>    &lt;Directory /var/www/www/secure&gt;
              Options Indexes FollowSymLinks MultiViews
              AllowOverride AuthConfig Options
              Order allow,deny
              allow from all
      &lt;/Directory&gt;
  </code></pre>
  
  <p>And by referring to the certificates and revocation lists like this:</p>
  
  <pre><code>SSLCACertificateFile  /etc/apache2/certificate.crt
  SSLCARevocationPath /etc/apache2/crl
  </code></pre>
  
  <p>It's quite annoying not having this functionality for testing and development purposes in Django. Any ideas on how to set it up?</p>
  
  <p>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.</p>