title: How to sign a custom JCE security provider
body: <p>Sun's PKCS11 JCE security provider is lacking some functionality we need.<br/>
  So I wrote an enhanced version of it using the original sources.</p>
  
  <p>Unfortunately the JCE infrastructure rejects the new provider<br/>
  <em>"JCE cannot authenticate the provider"</em><br/>
  because it is not properly signed.</p>
  
  <p><code>javax.crypto.JceSecurity.verifyProviderJar(...)</code> throws.<br/>
  (it calls <code>javax.crypto.JarVerifier.verify()</code>)</p>
  
  <p>Any suggestions how to sign the new provider to make it 
  work with JCE?</p>