Viscosity 1.9.2 issue with OpenSC on M1 Macs

Got a problem with Viscosity or need help? Ask here!


Posts: 1
Joined: Wed Apr 14, 2021 8:47 pm

Post by darhipov » Wed Apr 14, 2021 9:48 pm
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/'
2021-04-14 13:43:53: PKCS#11: Cannot initialize provider '/Library/OpenSC/lib/' 6-'CKR_FUNCTION_FAILED'

It works fine on Intel Macs, but on MacBook Air M1 something seems to be broken...

/Applications/ --show-pkcs11-ids "/Library/OpenSC/lib/" works fine and shows the certificate info


User avatar
Posts: 2108
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Thu Apr 15, 2021 8:41 am
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: ... -790550890

It appears an offical release, version 0.22.0, is likely due for release in a couple of weeks time:

James Bekkema
Viscosity Developer

2 posts Page 1 of 1