xca icon indicating copy to clipboard operation
xca copied to clipboard

Cannot load PKCS11 module on macOS ("file not found")

Open KizzyCode opened this issue 2 years ago • 1 comments

XCA fails to open PKCS#11 libraries ("file not found"), even if the file exists (i.e. softhsm2.so and libykcs11.dylib). This issue may be related to #292, however none of the workarounds worked so it might not be connected at all.


Things I've tried:

Furthermore, there are no Library Validation failed-errors in my console.


System info:

  • MacBook Pro (14-inch, 2021), Apple M1 Pro
  • macOS Monterey 12.3.1 (21E258)

KizzyCode avatar Apr 03 '22 02:04 KizzyCode

Work around works for me:

codesign --remove-signature /Applications/xca.app/
codesign --sign - /Applications/xca.app/

Of course, this will weaken the security slightly by removing the signature.

foxt avatar Sep 08 '23 22:09 foxt