Java Error using ejbcaClientToolBox PKCS11HSMKeyTool

Help
2013-08-22
2013-08-22
  • timothy dyck

    timothy dyck - 2013-08-22

    I am trying to set up the Utimaco SafeGaurd Simulator HSM to see how it works and every time I try to use the Client Tool Box I get this Error:

    2013-08-22 11:24:10,197 INFO [org.ejbca.util.keystore.KeyTools] Using SUN PKCS11 provider: sun.security.pkcs11.SunPKCS11
    2013-08-22 11:24:10,312 ERROR [org.ejbca.util.keystore.KeyTools] Error constructing pkcs11 provider: null
    Command could not be executed. See log for stack trace.
    2013-08-22 11:24:10,313 ERROR [org.ejbca.ui.cli.HSMKeyTool] Command 'PKCS11HSMKeyTool generate /home/user/Desktop/Software/Linux/x86-32/Crypto_APIs/PKCS11/lib/libcs2_pkcs11.so null pkcs11 1 1 1' could not be executed.
    java.io.IOException: Error constructing pkcs11 provider: null
    at org.ejbca.util.keystore.KeyTools.getP11Provider(KeyTools.java:908)
    at org.ejbca.util.keystore.KeyTools.getP11Provider(KeyTools.java:864)
    at org.ejbca.util.keystore.KeyStoreContainerP11.getInstance(KeyStoreContainerP11.java:51)
    at org.ejbca.util.keystore.KeyStoreContainerFactory.getInstance(KeyStoreContainerFactory.java:55)
    at org.ejbca.ui.cli.HSMKeyTool.doIt(HSMKeyTool.java:137)
    at org.ejbca.ui.cli.HSMKeyTool.execute(HSMKeyTool.java:290)
    at org.ejbca.ui.cli.PKCS11HSMKeyTool.execute(PKCS11HSMKeyTool.java:47)
    at org.ejbca.ui.cli.ClientToolBox.executeIfSelected(ClientToolBox.java:40)
    at org.ejbca.ui.cli.ClientToolBox.main(ClientToolBox.java:70)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    at org.ejbca.util.keystore.KeyTools.getP11Provider(KeyTools.java:905)
    ... 8 more
    Caused by: java.security.ProviderException: Initialization failed
    at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:358)
    at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:107)
    ... 13 more
    Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: 0xB0830013
    at sun.security.pkcs11.wrapper.PKCS11.C_Initialize(Native Method)
    at sun.security.pkcs11.wrapper.PKCS11$SynchronizedPKCS11.C_Initialize(PKCS11.java:1545)
    at sun.security.pkcs11.wrapper.PKCS11.getInstance(PKCS11.java:157)
    at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:315)
    ... 14 more

    What exactly does it mean?

     
  • Tomas Gustavsson

    you can find out the meaning of the error code 0xB0830013 (from the HSM) by using a Utimaco command:

    ./csadm PrintError=0xB0830013

    Cheers,
    Tomas


    PrimeKey Solutions offers commercial EJBCA and SignServer support subscriptions and training courses. Please see www.primekey.se or contact info@primekey.se for more information.
    http://www.primekey.se/Services/Support/
    http://www.primekey.se/Services/Training/

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks