Mac OS X
Using smart cards from Java on OS X (10.6)
- 64bit JVM has problems with detecting smart card reader events and states, 32bit JVM does not have the same problems.
Building OpenSC.tokend
- NB! A pre-built OpenSC needs to exist in ~/OpenSC, where the tokend build will look for header files.
- Clone the OpenSC.tokend source tree: git clone git://github.com/martinpaljak/OpenSC.tokend.git
- Check out the correct branch (valid are 10.5 and 10.6): git checkout 10.6
- Fetch the binary build dependancies ( build_105.tar.gz or build_106.tar.gz) and unpack in the OpenSC.tokend folder (creates a build directory)
- build OpenSC.tokend: xcodebuild -configuration Deployment
- move the resulting build/OpenSC.tokend to /System/Library/Security/tokend
- OpenSC needs to be installed to the default location, /Library/OpenSC