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

SoftHSM on AIX #740

Open
anshuman-mor opened this issue Feb 12, 2024 · 0 comments
Open

SoftHSM on AIX #740

anshuman-mor opened this issue Feb 12, 2024 · 0 comments

Comments

@anshuman-mor
Copy link

Has anyone successfully tried to compile and build SoftHSM for AIX/PowerPC?

My environment looks like -
bash-5.2# oslevel -s
7200-05-06-2320
bash-5.2# uname -srv
AIX 2 7

I am able to compile the code both with Make and CMake with GCC and Clang but having different issues with both compiled versions (I am using Temurin provided OpenJDK keytool command to test).

Clang compiled SoftHSM -

loadProviderByClass: sun.security.pkcs11.SunPKCS11
Exception in thread "main" java.lang.OutOfMemoryError
at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_FindObjects(Native Method)
at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.findObjects(P11KeyStore.java:2680)
at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.mapLabels(P11KeyStore.java:2293)
at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.engineLoad(P11KeyStore.java:769)
at java.base/java.security.KeyStore.load(KeyStore.java:1479)
at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:1010)
at java.base/sun.security.tools.keytool.Main.run(Main.java:421)
at java.base/sun.security.tools.keytool.Main.main(Main.java:414)

GCC compiled SoftHSM

terminate called after throwing an instance of 'std::bad_cast'
terminate called recursively
IOT/Abort trap (core dumped)

I only built PKCS#11 module for now, as I don't require other executables, but having issues with executables as it requires getopt which is not available on AIX!

Also, to make available the data, I copied the tokens directory from Windows as I couldn't build the executables on AIX due to getopt issues.

Any help would be greatly appreciated.

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

No branches or pull requests

1 participant