Skip to content

Installation

Project Import

Reference the official Java Maven package from HSM DINAMO in your project.

Manual installation

This form of installation is most commonly used for third-party applications where you don't have access to the source code.

  1. Download the file jar of Java package of HSMclick on Versions and then Browse. In the list download the file which is usually named as follows dinamo-hsm-M.N.P.jar where M.N.P is the version.

  2. Copy the file to JDK.

    Copy the file dinamo-hsm-M.N.P.jar folder <JAVA_HOME>\jre\lib\ext .

    E.g: C:\Program Files\Java\jdk1.8.0_211\jre\lib\ext

    Make the file accessible in the java classpath.

    Ex. with option -cp:

    java -cp "dinamo-hsm-4.14.0.jar" -jar app.jar
    
  3. Include the JCA class DINAMO in the JVM's list of encryption providers. This can be done in various ways, for example:

    1. Via application-specific parameters.

      E.g: jarsigner ... -providerClass br.com.trueaccess.provider.netdfence.ND.

    2. Inclusion in the configuration file <JAVA_HOME>\jre\lib\security\java.security the reference for the HSM security.provider.X=br.com.trueaccess.provider.netdfence.ND where X should be replaced by the position of the CSP in the CSP ranking list.

      Example:

      .
      .
      .
      #
      # List of providers and their preference orders (see above):
      #
      security.provider.1=sun.security.provider.Sun
      security.provider.2=com.sun.net.ssl.internal.ssl.Provider
      security.provider.3=com.sun.rsajca.Provider
      security.provider.4=com.sun.crypto.provider.SunJCE
      security.provider.5=sun.security.jgss.SunProvider
      security.provider.6=br.com.trueaccess.provider.netdfence.ND
      .
      .
      .
      
    1. Via application-specific parameters.

      E.g: jarsigner ... -providerClass br.com.trueaccess.provider.netdfence.ND.