The making of the Microsoft keystore interface DLL

This is a small *HOWTO* explaining the build procedures of the microsoft keystore DLL using cygwin
  1. Enter directory where opensign has been checked out

    In the following example the location is:

    $ cd  /cygdrive/d/eclipse/workspace/opensign
    

    Enter directory where the code is placed:

    $ cd jni/microsoftcryptoapi
    

    this is where the code is placed

  2. Setup the environment.

    In the example JAVA is installed in /cygdrive/d/j2sdk1.4.2

    Type:
    $ export JAVA_HOME=/cygdrive/d/j2sdk1.4.2
    
    $ export PATH=$JAVA_HOME/bin:$PATH
    
  3. test the java environment by typing:
    $ javah
    

    This sould result in something like:

    > Usage: javah [options] classes
    > ...
    
  4. Setup the CLASSPATH

    The makefile describes the setting. Type:

    $ export CLASSPATH=../../classes
    
  5. Make the DLL

    Type:

    $ make dll
    
  6. That should be it!

    Please report any problems back to the developer mailing list on http://openoces.org

Jens Bo Friis
http://it-practice.dk