frankmorgner / OpenSCToken

Use OpenSC in macOS CryptoTokenKit.
GNU General Public License v3.0
75 stars 14 forks source link

OpenSCToken does not get removed/unregistered #24

Closed mouse07410 closed 4 years ago

mouse07410 commented 4 years ago

I am not sure if this problem manifests only if you build OpenSCToken from source and the copy of its executable is present somewhere on your system.

Config

MacOS Mojave 10.14.6, Xcode-11.3.1. Current master of OpenSC and OpenSCToken, OpenSSL_1_1_1-stable (1.0.2 is deprecated - it's time to move off it ;).

Symptoms

  1. Build and install (from the OpenSCToken.dmg) OpenSCTokenApp.app.
  2. Start it, observe it registering the extension. So far so good.
  3. Insert the token, observe (e.g., via ps -ef | fgrep OpenSCToken) that OpenSCToken started.
  4. Remove the token, uninstall OpenSC via /usr/local/bin/opensc-uninstall. Double-check that the /Applications/OpenSCTokenApp.app has been removed - delete it if it wasn't.
  5. Insert the token - observe the extension started again.
  6. Remove the token, kill the running extension, insert the token - observe the extension started again.

Workaround

Now the extension is gone.

Proposed Solution

I don't know - maybe write a real uninstaller that would locate and remove/unregister this extension?