Coder Social home page Coder Social logo

Comments (1)

vessokolev avatar vessokolev commented on August 25, 2024

I had the same problem on CentOS 8 and Rocky Linux 8. Running Smart Card Shell 3. Once trying to access CardContact HSD token, I used to get only:

load("keymanager/keymanager.js");
GPError: Card (CARD_CONNECT_FAILED/0) - "No card in reader or mute card." in /home/vesso/CardContact/scsh3/keymanager/keymanager.js#2456
at /home/vesso/CardContact/scsh3/keymanager/keymanager.js#2456

The token was neither locked or muted. I was able to use it in NSS (Mozilla, Brave). pcks11-tool was also able to access the card:

[vesso@localhost ~]$ pkcs11-tool -L
Available slots:
Slot 0 (0x0): Identiv uTrust 3512 SAM slot Token [CCID Interface] (55511822...
token label : SmartCard-HSM (UserPIN)
token manufacturer : www.CardContact.de
token model : PKCS#15 emulated
token flags : login required, rng, token initialized, PIN initialized
hardware version : 24.13
firmware version : 3.5
serial num : DECC09000XX
pin min/max : 6/15

I tried that on several fresh installations to be sure I don't encounter some local problem.

Seems like it is a Java OpenJDK version problem. The only way to solve that problem is to upgrade your Java OpenJDK to as higher version is possible. Then set that version default by means of alternatives:

Selection Command

*+ 1 java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-2.el8_5.x86_64/jre/bin/java)
2 java-17-openjdk.x86_64 (/usr/lib/jvm/java-17-openjdk-17.0.1.0.12-2.el8_5.x86_64/bin/java)

Enter to keep the current selection[+], or type selection number: 2

After that, the HSM token can be read.

Note, that pair of problem and fix applies to Nitrokey HSM tokens too!

from scsh-scripts.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.