Getting the source code to compile correctly under OSX was not exactly trivial, there were a few things we needed to do create a simple installable package under OSX. Here is step by step guide on the environment setup:
- Download and install XCode
- Install MacPorts from http://www.macports.org/
- Then install a few packages that is required to build the installer, this is described on the OpenSC project website:
But this is still not all since autoconf and a few packages cannot be found when trying to run build. The workaround here is to run "autoconf -vis", now the build begins and compiles successfully
Here we can see that the build is successful, however there is no PackageMaker, the trick here is to install the Auxillary tools package, we found one from 2012 since newer onces did not have the PackageMaker app:
This package actually includes PackageMaker...
Once auxillary tools (with PackageMaker) is downloaded there are still a few steps needed:
- Look for the xcode.app and open it by selecting "Show package content"
- Copy and paste all files from the downloded .dmg and put them in /Applications folder which can be found inside Xcode
- Add your current user to 'Sharing & Permissions' of the /Resources folder and grant the user RW access
- Do the same thing in step 3 for the file /Resources/IDEHelperApps.plst
- Edit the IDEHelperApps.plist and add <string>Contents/Applicatoiins/PackageManager.app</string>. save the file and restart Xcode.
Everything should compile successfully now and an installer gets created:
Now OpenSC can be installed:
As soon as Firefox is setup the card is now ready to use. Add a security device under Firefox > Preferences > Advanced > Certificates > Security Devices. The path to the module is /usr/lib/opensc-pkcs11.so
Restart Firefox and the login now works with our test account:
Google Chrome does not need any confiuration, everything works.