status-desktop icon indicating copy to clipboard operation
status-desktop copied to clipboard

Keycard does not work on Ubuntu

Open lucille-bellepleure opened this issue 2 years ago • 5 comments

Just freshly built Status Desktop. Smartcard reader is working, pcscb is installed (since ubuntu 18 it's default). In the logs of the app: keycard - keycard-error: no pcsc service

Also tested on MacOS, iMac M1, here it works fine.

lucille-bellepleure avatar Aug 20 '22 18:08 lucille-bellepleure

@michelleplur did u enable the service?

sudo systemctl start pcscd.socket

On ubuntu this service is not enabled by default

alaibe avatar Sep 23 '22 12:09 alaibe

yes

lucille-bellepleure avatar Sep 23 '22 14:09 lucille-bellepleure

It works with running it in dev mode from master, but when i build it with docker there's no pcscd service found.

lucille-bellepleure avatar Sep 23 '22 14:09 lucille-bellepleure

After changing the keycard debug to:

cardCtx, err := scard.EstablishContext()
	if err != nil {
		err = newKeycardError(err.Error())
		l(err.Error())
		close(kc.connected)
		return err
	}

In order to have the "real" error, here it is: keycard - keycard-error: scard: Service was stopped.

But the service is running correctly. It looks like the scard program is having an issue?

alaibe avatar Oct 04 '22 08:10 alaibe

@michelleplur ☝ is it something you can look at?

alaibe avatar Oct 14 '22 09:10 alaibe

Done

alaibe avatar Apr 19 '23 14:04 alaibe