Re: How to create minidriver on OpenSC

Cui Alan <[email protected]> Fri, 25 Nov 2022 22:51:05 +0000
Newsgroups gmane.comp.encryption.opensc.devel
Message-ID <OS3P286MB2213C873CCEC9CFABCEF820BAD0E9@OS3P286MB2213.JPNP286.PROD.OUTLOOK.COM>
Hi,
> for OpenSC, you need to modify the registry so that your token is
> recognized by the OpenSC MD, see
Yes, I had motified the registry and OpenSC 0.22.0 Minidriver recognized my card correctly
But it still reported my card is read-only.

> for PIV, you may need to disable the Windows' builtin MD for PIV.
I recently disabled it in gpedit.msc for OpenSC 0.23.0-rc2
And 
> Microsoft has it own PIV support by checking for PIV AID and and adding to registry. 
> "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Calais\PIV Device ATR Cache"
> You may need to remove it andd your registry entries before inserting it again.
I actually cannot understand what to do, but I motified the entry from uuid to my card name.
It still not works. Read-only is still reported.

> Every piv vendor I have seen has their own minidriver and they are installed via plug-and-play.
Yes, I'm the vendor of the card and going to make minidriver by OpenSC.

Thanks for all of you.

Alan.