Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCT with USB support #8

Open
luiszunigacr opened this issue Dec 9, 2016 · 2 comments
Open

OpenCT with USB support #8

luiszunigacr opened this issue Dec 9, 2016 · 2 comments

Comments

@luiszunigacr
Copy link

I'm trying to install openct-0.6.20 on CENTOS 7 following these instructions.
On the ./configure step I get this output:
`OpenCT has been configured with the following options:

Version: 0.6.20
Libraries: /usr/lib

doc support: no
api doc support: no
usb support: no
pcsc support: no
non-privileged support: #

Host: x86_64-unknown-linux-gnu
Compiler: gcc
Preprocessor flags: -DOPENCT_CONF_PATH=""$(sysconfdir)/openct.conf"" -DOPENCT_SOCKET_PATH=""$(OPENCT_SOCKET_PATH)"" -DOPENCT_MODULES_PATH=""$(ifddir)"" -DOPENCT_IFDHANDLER_PATH=""$(sbindir)/ifdhandler""
Compiler flags: -g -O2
Linker flags:
Libraries:

LIBUSB_CFLAGS: -I/usr/include
LIBUSB_LIBS: -L/usr/lib -lusb

PCSC_CFLAGS:
PCSC_LIBS:

bundledir:
ifddir: ${libdir}/ifd
udevdir:
hotplugdir:

daemon user: openctd
daemon groups: usb
`

I'm concerned about the usb support because I need to initialize and use a Nitrokey HSM, which is a USB device.
I set the environment variables LIBUSB_CFLAGS and LIBUSB_LIBS manually, since pkg-config didn't find libusb... In /usr/lib I have libusb-1.0.so.0.1.0 (and a link to this library called libusb-1.0.so.0) and in /usr/include I have usb.h. Any ideas on what could be wrong?

I already installed OpenSC, but it is not recognizing the Nitrokey, I think that is what I need OpenCT for, right?
Thanks in advance!

@alonbl
Copy link
Member

alonbl commented Dec 9, 2016 via email

@cg2v
Copy link

cg2v commented Dec 26, 2016

Not to disagree with Alon (everything he says is true), but I also wanted to tell you why configure is not detecting your libusb. openct expects libusb 0.x, which is not common in distributions anymore.

Nitrokey seems to be a CCID device. There are instructions at nitrokey.com for configuring the pcsc libccid driver for nitrokey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants