Open pionl opened 3 months ago
Your first try seems to be the correct one:
0x00002784 : 0x000063cc : Unable to load C:\Program Files\Yubico\Yubico PIV Tool\bin\libykcs11.dll
However that error does not necessarily mean that there is a problem with a path. Loading of PKCS#11 library can fail because of many other issues. One of them for example could be that PKCS#11 library depends on some third party library that is not available in your system. If you want to get more details you would need to modify part of code that handles error returned by LoadLibraryA
function and get those details by calling GetLastError
function.
When it comes to Yubico's PKCS#11 library I remember that it needed "special" loading that I implemented in Pkcs11Interop as a part of https://github.com/Pkcs11Interop/Pkcs11Interop/pull/143. If that is the case, then the quickest fix would be to add C:\Program Files\Yubico\Yubico PIV Tool\bin\
to your PATH
.
@pionl any update on this?
Hi,
Ive got a path to pkcs11 with spaces, how is recommended way to pass this path to? Thank you
I have tried several implementations based on this https://www.howtogeek.com/694949/how-to-escape-spaces-in-file-paths-on-the-windows-command-line/