Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS 15.2 pkcs11 provider will not initiallize. #442

Open
medhost-nwatson opened this issue Dec 16, 2024 · 3 comments
Open

MacOS 15.2 pkcs11 provider will not initiallize. #442

medhost-nwatson opened this issue Dec 16, 2024 · 3 comments

Comments

@medhost-nwatson
Copy link

The latest install of Yubihsm SDK version 2024-09 for Darwin Arm64 running on an M2 Pro-based Mac will not initialize the pkcs11 provider for Java.

keytool -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg /usr/local/yubihsm/sun_yubihsm2_pkcs11.conf -list -J-Djava.security.debug=sunpkcs11

SunPKCS11 loading /usr/local/yubihsm/sun_yubihsm2_pkcs11.conf
sunpkcs11: Initializing PKCS#11 library /usr/local/lib/pkcs11/yubihsm_pkcs11.dylib
keytool error: java.security.ProviderException: Initialization failed

I have tried OpenJDk 17, Corretto 17, and Corretto 11 for Java releases, and they all give the same error.

@aveenismail
Copy link
Member

@medhost-nwatson Sincere apologies for the very late response.

Was the issue resolved?

@medhost-nwatson
Copy link
Author

No Worries. No, I never resolved it with the Mac, but it works fine on Windows and Linux, and that's our primary use case, so I hadn't thought it about again for a bit.

@qpernil
Copy link
Contributor

qpernil commented Feb 3, 2025

One suggestion would be to build it with static dependencies, by specifying -DENABLE_STATIC=1 to cmake, and see if that solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants