<html><head></head><body><div><blockquote class="mori" style="margin:0 0 0 .8ex;border-left:1px solid #CCC;padding-left:1ex;">Can you add a -debug option and show me the full output?
<br>
<br>You can also add a -J-Djava.security.debug=all but I am not sure if the output is useful.
<br>
<br>--Max
<br>
<br></blockquote></div><div><br></div><div>We found it useful but there is a lot of it.    We also used it while walking though the code and viewing our own logs.</div><div><br></div><div>You can see for example that it will silently select a local Sun mechanism if it cannot find one in your P11 token.</div><div><br></div><div><br></div><div>Mark Joseph</div><div>P6R, Inc</div><div><br></div><div><br></div><br><div><blockquote class="mori" style="margin:0 0 0 .8ex;border-left:1px solid #CCC;padding-left:1ex;">> On Jan 12, 2016, at 9:38 AM, Mark Joseph <mark@p6r.com> wrote:
<br>> 
<br>> Hi,
<br>> 
<br>>    We are a PKCS#11 vendor and we are in the process of integrating our C library with keytool and jarsigner.   
<br>> 
<br>> We are executing the following comand line.  
<br>> 
<br>> keytool  -keystore NONE -storetype PKCS11 -storepass 12345678 -providerName SunPKCS11-P6Rtoken -providerclass sun.security.pkcs11.SunPKCS11 -providerarg E:\work\SKC_OPT_2015_2\p6r.cfg -genkeypair -keyalg RSA -keysize 2048 -alias p6rsignkey -v
<br>> 
<br>> We are doing this on Windows, and we are using the latest Java keytool out of the JDK.  
<br>> Our library is 64 bits and the Java version we have installed is 64 bits.
<br>> 
<br>> Now what we are seeing is strange.    The above worked one time with the key pair being generated and stored in our PKCS11 library.
<br>> 
<br>> Then we reset everything and continued to do testing and the result was that keytool again created a Certificate and a Private key and placed them into our PKCS11 library.  
<br>> 
<br>> However, instead of finishing by creating the key pair by calling our PKCS11 library it just stopped and returned.   There was no error or exception printed out.  
<br>> 
<br>> So we are stuck not knowing what is wrong?    Any one seen this before or have a way we can see why the keytool is "aborting" out of running?
<br>> 
<br>> 
<br>> 
<br>> Best,
<br>> Mark Joseph
<br>> P6R, Inc
<br>
<br></blockquote></div></body></html>