title: Access to Smartcard with self-signed Java applet still possible?
body: <p>Im trying to communicate with the client's smartcard using javax.smartcardio.
  The applet is only for users within our Intranet.
  The applet workings fine, when i debug it within Eclipse.</p>
  
  <p>When i open it in the browser (i tried IE9 and Chrome) with following html code:</p>
  
  <pre><code>&lt;body&gt;
  &lt;!-- ... --&gt;
  &lt;script src="https://www.java.com/js/deployJava.js"&gt;&lt;/script&gt;
  &lt;script&gt; 
      var attributes = {
          code:'test.TestClass',  width:300, height:300, scriptable:true} ; 
      var parameters = {jnlp_href: 'TestJNLP.jnlp'} ; 
      deployJava.runApplet(attributes, parameters, '1.7'); 
  &lt;/script&gt;
  &lt;!-- ... --&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I get the following Exception:
  <a href="http://s1.directupload.net/images/140130/uj4c3tvf.png" rel="nofollow">AccessControlException</a></p>
  
  <p>The Java-Console only display this 3 lines:
      Missing Application-Name manifest attribute for: file:/C:/AppletTestSite/TestApplet.jar
      Missing Permissions manifest attribute in main jar: file:/C:/AppletTestSite/TestApplet.jar
      CacheEntry[file:/C:/AppletTestSite/TestApplet.jar]: updateAvailable=true,lastModified=Wed Jan 29 08:40:39 CET 2014,length=6684</p>
  
  <p><strong>Things i tried already:</strong></p>
  
  <p>-using <em>doPrivileged</em>:</p>
  
  <pre><code>public void init() {
      try {
          AccessController
                  .doPrivileged(new PrivilegedExceptionAction&lt;Integer&gt;() {
                      public Integer run() {
                          ReaderInit(); //&lt;------
                          return null;
                      }
                  });
      } catch (PrivilegedActionException e) {
          // catch block
          e.printStackTrace();
      }
  
  }
  </code></pre>
  
  <p>-Adding permission to the jnlp-file:</p>
  
  <pre><code>&lt;security&gt;
    &lt;all-permissions/&gt;
  &lt;/security&gt;
  </code></pre>
  
  <p>-Adding following line to the manifest:</p>
  
  <pre><code>Permissions: all-permissions
  </code></pre>
  
  <p>-self-signed the jar-file with keytool&amp;jarsigner</p>
  
  <pre><code>C:\Program Files\Java\jdk1.7.0_51\bin&gt;jarsigner -verify C:\AppletTestSite\TestApplet.jar
  jar verified.
  </code></pre>
  
  <p>-in the java control panel, set Security Level to Medium and add the site's URL to Exception Site List</p>
  
  <p><strong>Did i miss something or is it just not possible at all anymore(since the 1.7.0_51 update) to access the smartcard without a public trusted CA?</strong></p>
  
  <p>I want to avoit changing the policy file for every single user of the applet.</p>