Skip to content
Viscosity 1.9.2 issue with OpenSC on M1 Macs
Got a problem with Viscosity or need help? Ask here!
2021-04-14 13:43:53: OpenVPN 2.4.10 arm-apple-darwin20.0.0 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [MH/RECVDA] [AEAD] built on Mar 26 2021
2021-04-14 13:43:53: library versions: OpenSSL 1.1.1k 25 Mar 2021, LZO 2.10
2021-04-14 13:43:53: PKCS#11: Adding PKCS#11 provider '/Library/OpenSC/lib/opensc-pkcs11.so'
2021-04-14 13:43:53: PKCS#11: Cannot initialize provider '/Library/OpenSC/lib/opensc-pkcs11.so' 6-'CKR_FUNCTION_FAILED'
It works fine on Intel Macs, but on MacBook Air M1 something seems to be broken...
/Applications/Viscosity.app/Contents/MacOS/viscosity_openvpn --show-pkcs11-ids "/Library/OpenSC/lib/opensc-pkcs11.so" works fine and shows the certificate info
2021-04-14 13:43:53: library versions: OpenSSL 1.1.1k 25 Mar 2021, LZO 2.10
2021-04-14 13:43:53: PKCS#11: Adding PKCS#11 provider '/Library/OpenSC/lib/opensc-pkcs11.so'
2021-04-14 13:43:53: PKCS#11: Cannot initialize provider '/Library/OpenSC/lib/opensc-pkcs11.so' 6-'CKR_FUNCTION_FAILED'
It works fine on Intel Macs, but on MacBook Air M1 something seems to be broken...
/Applications/Viscosity.app/Contents/MacOS/viscosity_openvpn --show-pkcs11-ids "/Library/OpenSC/lib/opensc-pkcs11.so" works fine and shows the certificate info
Hi darhipov,
You appear to be using a PKCS#11 driver, which is OpenSC in this instance. You’ll need a build of OpenSC with native Apple Silicon support.
The OpenSC project has added support for Apple Silicon, but it appears they have not yet made a new offical release available. However, you can download a “nightly” build from them with support:
https://github.com/OpenSC/OpenSC/pull/2 ... -790550890
It appears an offical release, version 0.22.0, is likely due for release in a couple of weeks time:
https://github.com/OpenSC/OpenSC/projects/9
Cheers,
James
You appear to be using a PKCS#11 driver, which is OpenSC in this instance. You’ll need a build of OpenSC with native Apple Silicon support.
The OpenSC project has added support for Apple Silicon, but it appears they have not yet made a new offical release available. However, you can download a “nightly” build from them with support:
https://github.com/OpenSC/OpenSC/pull/2 ... -790550890
It appears an offical release, version 0.22.0, is likely due for release in a couple of weeks time:
https://github.com/OpenSC/OpenSC/projects/9
Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
2 posts
Page 1 of 1