jsign icon indicating copy to clipboard operation
jsign copied to clipboard

Add support for locating ykcs11 library on macOS

Open ye4241 opened this issue 2 months ago • 3 comments

This pull request enhances the way the getYkcs11Library() method in YubiKey.java locates the YubiKey PKCS#11 library, making it more flexible and robust, especially for custom and MacOS environments.

Improvements to library discovery:

  • Added support for specifying a custom PKCS#11 library path via the PKCS11_MODULE environment variable, allowing users to override the default search logic.
  • Improved MacOS support by searching multiple common locations for libykcs11.dylib, including paths from the DYLD_LIBRARY_PATH environment variable, increasing compatibility with different installation methods.

ye4241 avatar Dec 06 '25 15:12 ye4241