native-pkcs11 icon indicating copy to clipboard operation
native-pkcs11 copied to clipboard

Compatibility with OpenSC pkcs11-tool

Open jht5945 opened this issue 1 year ago • 0 comments

Use command line pkcs11-tool form OpenSC, command:

pkcs11-tool --module /Users/hatterjiang/temp/native-pkcs11/target/debug/libnative_pkcs11.dylib -O --type cert

Will outputs error like e=4 is not a valid attribute type.

Certificate Object; type = X.509 cert
  label:      localhost
  subject:    DN: CN=localhost
  serial:     C02EEBD51EC16920
  ID:         b155d09d3f61d07cacd64400636996ddea43a3b6
2024-08-16T05:27:48.208995Z ERROR native_pkcs11: e=4 is not a valid attribute type

Change cert to privkey will also output many errors.

But, change --type to pubkey, there is no public key prints in outputs.

jht5945 avatar Aug 16 '24 05:08 jht5945