Re: How to create minidriver on OpenSC
Douglas E Engert <[email protected]> Fri, 25 Nov 2022 08:59:13 -0600
| Newsgroups | gmane.comp.encryption.opensc.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============0304427261942558810==
Content-Type: multipart/alternative;
boundary="------------5SnBYQCn8Mq0DnPV6x8CBUVF"
Content-Language: en-US
This is a multi-part message in MIME format.
--------------5SnBYQCn8Mq0DnPV6x8CBUVF
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
In addition to what Frank said: See
* Entries for PIV cards are not added to the registry by OpenSC.
o Every piv vendor I have seen has their own minidriver and they are installed via plug-and-play.
* 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.
* OpenSC 0.22.0 minidriver does not support EC correctly. 0.23.0 release candidates have changes to fix that. See https://github.com/OpenSC/OpenSC/pull/2523 For PIV registry entries for 0.23.0 see
https://github.com/OpenSC/OpenSC/issues/2426#issuecomment-1280934853
On 11/25/2022 4:07 AM, Cui Alan wrote:
> Hi,
> I'm the developer of the Minidriver of Canokey(https://www.canokeys.org/)
> I recently build OpenSC 0.22.0. Using /DDEBUG and following conf file:
>
> app default {
> debug = 100;
> debug_file = opensc-debug.txt;
> }
> app cardmod {
> debug = 1000;
> debug_file = opensc-debug.txt;
> framework pkcs15 {
> # use_file_caching = public;
> }
> reader_driver pcsc {
> }
> card_atr 3b:f7:11:00:00:81:31:fe:65:43:61:6e:6f:6b:65:79:99 {
> name = "Canokey Piegon";
> driver = "PIV-II";
> flags = "keep_alive";
> }Franks
> }
> And I got no output both in C:/tmp and C:\Program Files\OpenSC Project\OpenSC\tools\opensc-debug.txt
> At the same time, the notice of pluging in popped out as normal.
> I have no idea about how to config or debug it.
> Thank you.
>
> Alan.
>
>
>
> _______________________________________________
> Opensc-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensc-devel
--
Douglas E. Engert<[email protected]>
--------------5SnBYQCn8Mq0DnPV6x8CBUVF
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
In addition to what Frank said: See<br>
<br>
<ul>
<li>Entries for PIV cards are not added to the registry by OpenSC.
<br>
</li>
<ul>
<li>Every piv vendor I have seen has their own minidriver and
they are installed via plug-and-play. <br>
</li>
</ul>
<li>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.<br>
</li>
<li>OpenSC 0.22.0 minidriver does not support EC correctly. 0.23.0
release candidates have changes to fix that. See
<a class="moz-txt-link-freetext" href="https://github.com/OpenSC/OpenSC/pull/2523">https://github.com/OpenSC/OpenSC/pull/2523</a> For PIV registry
entries for 0.23.0 see
<a class="moz-txt-link-freetext" href="https://github.com/OpenSC/OpenSC/issues/2426#issuecomment-1280934853">https://github.com/OpenSC/OpenSC/issues/2426#issuecomment-1280934853</a></li>
</ul>
<br>
<br>
<div class="moz-cite-prefix">On 11/25/2022 4:07 AM, Cui Alan wrote:<br>
</div>
<blockquote type="cite"
cite="mid:TYWP286MB2218F70A8F3E1F5330A2B870AD0E9@TYWP286MB2218.JPNP286.PROD.OUTLOOK.COM">
<pre class="moz-quote-pre" wrap="">Hi,
I'm the developer of the Minidriver of Canokey(<a class="moz-txt-link-freetext" href="https://www.canokeys.org/">https://www.canokeys.org/</a>)
I recently build OpenSC 0.22.0. Using /DDEBUG and following conf file:
app default {
debug = 100;
debug_file = opensc-debug.txt;
}
app cardmod {
debug = 1000;
debug_file = opensc-debug.txt;
framework pkcs15 {
# use_file_caching = public;
}
reader_driver pcsc {
}
card_atr 3b:f7:11:00:00:81:31:fe:65:43:61:6e:6f:6b:65:79:99 {
name = "Canokey Piegon";
driver = "PIV-II";
flags = "keep_alive";
}Franks
}
And I got no output both in C:/tmp and C:\Program Files\OpenSC Project\OpenSC\tools\opensc-debug.txt
At the same time, the notice of pluging in popped out as normal.
I have no idea about how to config or debug it.
Thank you.
Alan.
_______________________________________________
Opensc-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/opensc-devel">https://lists.sourceforge.net/lists/listinfo/opensc-devel</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="200">--
Douglas E. Engert <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><[email protected]></a>
</pre>
</body>
</html>
--------------5SnBYQCn8Mq0DnPV6x8CBUVF--
--===============0304427261942558810==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============0304427261942558810==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Opensc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensc-devel
--===============0304427261942558810==--