title: Sun PKCS#11 Wrapper how to debug CKR_TEMPLATE_INCONSISTENT
body: <p>Is there any way how to debug what is causing Sun PKCS#11 wrapper exception?:</p>
  
  <pre><code>sun.security.pkcs11.wrapper.PKCS11Exception: CKR_TEMPLATE_INCONSISTENT
  </code></pre>
  
  <p>I would like to know which attribute of PKCS#11 object is inconsistent and fix it.</p>