Java Error using ejbcaClientToolBox PKCS11HSMKeyTool

  • 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:
    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/ null pkcs11 1 1 1' could not be executed. Error constructing pkcs11 provider: null
    at org.ejbca.util.keystore.KeyTools.getP11Provider(
    at org.ejbca.util.keystore.KeyTools.getP11Provider(
    at org.ejbca.util.keystore.KeyStoreContainerP11.getInstance(
    at org.ejbca.util.keystore.KeyStoreContainerFactory.getInstance(
    at org.ejbca.ui.cli.HSMKeyTool.doIt(
    at org.ejbca.ui.cli.HSMKeyTool.execute(
    at org.ejbca.ui.cli.PKCS11HSMKeyTool.execute(
    at org.ejbca.ui.cli.ClientToolBox.executeIfSelected(
    at org.ejbca.ui.cli.ClientToolBox.main(
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
    at java.lang.reflect.Constructor.newInstance(
    at org.ejbca.util.keystore.KeyTools.getP11Provider(
    ... 8 more
    Caused by: Initialization failed
    ... 13 more
    Caused by: 0xB0830013
    at Method)
    ... 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


    PrimeKey Solutions offers commercial EJBCA and SignServer support subscriptions and training courses. Please see or contact for more information.


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