native-pkcs11
native-pkcs11 copied to clipboard
Compatibility with OpenSC pkcs11-tool
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.