Comments (7)
So I've done a bit more debugging and found out that the following diff makes the smartcard work:
--- a/src/libopensc/types.h
+++ b/src/libopensc/types.h
@@ -169,9 +169,9 @@ struct sc_crt {
#define SC_AC_OP_PIN_RESET 19
#define SC_AC_OP_ACTIVATE 20
#define SC_AC_OP_DEACTIVATE 21
-#define SC_AC_OP_READ 22
-#define SC_AC_OP_UPDATE 23
-#define SC_AC_OP_WRITE 24
+#define SC_AC_OP_READ 0
+#define SC_AC_OP_UPDATE 1
+#define SC_AC_OP_WRITE 3
#define SC_AC_OP_RESIZE 25
#define SC_AC_OP_GENERATE 26
#define SC_AC_OP_CREATE_EF 27
So the commit 1d82e8a changes the AC_OP numbers, and changing them back seemed to fix this regression.
from opensc.
It appears that just the WRITE variable needs to be changed to 3 to make this work.
from opensc.
OpenSC has changed a lot from 0.12.2 to 0.13.0 .
Would be nice if you could reproduce your problem with the latest master and with maximal debug level.
from opensc.
I've already tested with the latest OpenSC from git as of e8eb4cd (1 month ago), and the problem still exists. I'll get maximal debug output from the latest git when I can and attach it here.
Like I mentioned before I was able to bisect the issue and it seems like changing SC_AC_OP_WRITE from 24 to 3, fixes the issue for this card, so looks like something specific with starcos code.
from opensc.
Log is attached here: https://launchpadlibrarian.net/140033445/opensc_log.txt
from opensc.
in 8ed4db7 SC_AC_OP_CREATE
and SC_AC_OP_WRITE
are defined as 3
, which seems like an error. 1d82e8a fixes this in defining SC_AC_OP_WRITE
to 24
.
It looks like somewhere in pkcs15-init
something is written where creation was missing beforehand. I don't have such a card, could you check with yours?
from opensc.
Please re-open the issue if it is still relevant or if you have news about possible fixes.
from opensc.
Related Issues (20)
- OpenPGP card v3.4 pkcs15-init reports not supported private key HOT 13
- Use of biometrics to un-lock smart card HOT 5
- Automate provisioning of WinGet package for OpenSC HOT 8
- Using OpenSC enabled token for signing PDF documents in Adobe HOT 2
- Card misidentification HOT 13
- OpenSC in Firefox constantly sending SELECT(AID) APDUs for probing HOT 2
- Avoid non SELECT(AID) commands for probing HOT 28
- Install p11-kit configuration file HOT 1
- JPKI SELECT AID not following ISO standards HOT 1
- OpenSC 0.25.1 dmg not notarized correctly HOT 2
- SmartCard-HSM issue with Windows AD Smart Card Logon & Micrsoft Encrypting File System HOT 4
- SmartCard-HSM issue with Microsoft Word 2019 & Outlook 2019 HOT 2
- Receiving "No slots" output from pkcs11-tool at boot time HOT 4
- Importing encrypted RSA and plain RSA private keys in SmartCard-HSM HOT 6
- SmartCard-HSM Error creating HSM backup smart card HOT 2
- OpenPGP card v3.4 DestroyObject returns as ok, but does nothing HOT 1
- pkcs11-tool should provide an option to get slot information as pkcs11-uri HOT 1
- pkcs11-tool: extend for printing the PKCS#11 URI for the objects
- Support D-Trust Card 5.1 (Std. RSA CardOS6.0) with CAN HOT 20
- Compilation error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opensc.