<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум Рутокен &mdash; linux & openct токен виден но не форматируется]]></title>
	<link rel="self" href="https://forum.rutoken.ru/feed/atom/topic/1618" />
	<updated>2012-03-19T06:46:17Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.rutoken.ru/topic/1618/</id>
		<entry>
			<title type="html"><![CDATA[Re: linux & openct токен виден но не форматируется]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/4612/#p4612" />
			<content type="html"><![CDATA[<p>С какими опциями у вас собран opensc? По умолчанию он собирается с поддержкой pcscd, а посему не будет работать через openct. Пришлите, пожалуйста, вывод команды<br /></p><div class="codebox"><pre><code>$ opensc-tool -i</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Кирилл Романовский]]></name>
				<uri>https://forum.rutoken.ru/user/8428/</uri>
			</author>
			<updated>2012-03-19T06:46:17Z</updated>
			<id>https://forum.rutoken.ru/post/4612/#p4612</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: linux & openct токен виден но не форматируется]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/4450/#p4450" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Кирилл Мещеряков пишет:</cite><blockquote><p>пришлите, пожалуйста, лог команды </p><div class="codebox"><pre><code>$ pkcs15-init --erase-card</code></pre></div></blockquote></div><p>В предыдущем посте был вывод четырех комманд:<br />$ openct-tool list<br />$ opensc-tool -l<br />$ opensc-tool -n<br />$ pkcs15-init --erase-card</p><p>// Разделил code на четыре секции в предыдущем сообщении</p>]]></content>
			<author>
				<name><![CDATA[biiont]]></name>
				<uri>https://forum.rutoken.ru/user/8392/</uri>
			</author>
			<updated>2012-02-08T07:25:51Z</updated>
			<id>https://forum.rutoken.ru/post/4450/#p4450</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: linux & openct токен виден но не форматируется]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/4449/#p4449" />
			<content type="html"><![CDATA[<p>пришлите, пожалуйста, лог команды </p><div class="codebox"><pre><code>$ pkcs15-init --erase-card</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Кирилл Мещеряков]]></name>
				<uri>https://forum.rutoken.ru/user/6786/</uri>
			</author>
			<updated>2012-02-08T07:04:43Z</updated>
			<id>https://forum.rutoken.ru/post/4449/#p4449</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: linux & openct токен виден но не форматируется]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/4440/#p4440" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Кирилл Мещеряков пишет:</cite><blockquote><p>Поставьте, пожалуйста, в файле /etc/opensc.conf значение debug = 6 и запустите <br /></p><div class="codebox"><pre><code>$pkcs15-init --erase-card</code></pre></div><p>Посмотрим, что он скажет.</p></blockquote></div><p>Аналогичная проблема - Rutoken S (0a89:0020) 32K200Z.</p><p>Для работоспособности токена форматировал под windows утилитой rtCert, все ок. Но под линукс получается ошибка.</p><p>pkcs15-init --erase-card<br /></p><div class="codebox"><pre><code>biiont@bitheap ~ % pkcs15-init --erase-card
0xb724e6c0 14:11:07.546 [pkcs15-init] ctx.c:659:sc_context_create: ===================================
0xb724e6c0 14:11:07.546 [pkcs15-init] ctx.c:660:sc_context_create: opensc version: 0.12.2
0xb724e6c0 14:11:07.546 [pkcs15-init] reader-pcsc.c:657:pcsc_init: PC/SC options: connect_exclusive=0 disconnect_action=1 transaction_end_action=0 reconnect_action=0 enable_pinpad=1
0xb724e6c0 14:11:07.546 [pkcs15-init] reader-pcsc.c:870:pcsc_detect_readers: called
0xb724e6c0 14:11:07.546 [pkcs15-init] reader-pcsc.c:878:pcsc_detect_readers: Probing pcsc readers
0xb724e6c0 14:11:07.546 [pkcs15-init] reader-pcsc.c:900:pcsc_detect_readers: Establish pcsc context
0xb724e6c0 14:11:07.546 [pkcs15-init] reader-pcsc.c:948:pcsc_detect_readers: Found new pcsc reader &#039;Aktiv Rutoken S 00 00&#039;
0xb724e6c0 14:11:07.547 [pkcs15-init] reader-pcsc.c:277:refresh_attributes: Aktiv Rutoken S 00 00 check
0xb724e6c0 14:11:07.947 [pkcs15-init] reader-pcsc.c:301:refresh_attributes: current  state: 0x00000022
0xb724e6c0 14:11:07.947 [pkcs15-init] reader-pcsc.c:302:refresh_attributes: previous state: 0x00000000
0xb724e6c0 14:11:07.947 [pkcs15-init] reader-pcsc.c:356:refresh_attributes: card present, changed
0xb724e6c0 14:11:07.947 [pkcs15-init] reader-pcsc.c:979:pcsc_detect_readers: Requesting reader features ... 
0xb724e6c0 14:11:07.947 [pkcs15-init] reader-pcsc.c:993:pcsc_detect_readers: Aktiv Rutoken S 00 00:SCardConnect(SHARED): 0x8010000f
0xb724e6c0 14:11:07.947 [pkcs15-init] reader-pcsc.c:1023:pcsc_detect_readers: returning with: 0 (Success)
0xb724e6c0 14:11:07.947 [pkcs15-init] sc.c:195:sc_detect_card_presence: called
0xb724e6c0 14:11:07.947 [pkcs15-init] reader-pcsc.c:364:pcsc_detect_card_presence: called
0xb724e6c0 14:11:07.947 [pkcs15-init] reader-pcsc.c:277:refresh_attributes: Aktiv Rutoken S 00 00 check
0xb724e6c0 14:11:08.347 [pkcs15-init] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
0xb724e6c0 14:11:08.347 [pkcs15-init] reader-pcsc.c:369:pcsc_detect_card_presence: returning with: 1
0xb724e6c0 14:11:08.347 [pkcs15-init] sc.c:200:sc_detect_card_presence: returning with: 1
Using reader with a card: Aktiv Rutoken S 00 00
0xb724e6c0 14:11:08.347 [pkcs15-init] sc.c:195:sc_detect_card_presence: called
0xb724e6c0 14:11:08.347 [pkcs15-init] reader-pcsc.c:364:pcsc_detect_card_presence: called
0xb724e6c0 14:11:08.347 [pkcs15-init] reader-pcsc.c:277:refresh_attributes: Aktiv Rutoken S 00 00 check
0xb724e6c0 14:11:08.748 [pkcs15-init] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
0xb724e6c0 14:11:08.748 [pkcs15-init] reader-pcsc.c:369:pcsc_detect_card_presence: returning with: 1
0xb724e6c0 14:11:08.748 [pkcs15-init] sc.c:200:sc_detect_card_presence: returning with: 1
0xb724e6c0 14:11:08.748 [pkcs15-init] card.c:115:sc_connect_card: called
0xb724e6c0 14:11:08.748 [pkcs15-init] reader-pcsc.c:444:pcsc_connect: called
0xb724e6c0 14:11:08.748 [pkcs15-init] reader-pcsc.c:277:refresh_attributes: Aktiv Rutoken S 00 00 check
0xb724e6c0 14:11:09.148 [pkcs15-init] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
0xb724e6c0 14:11:09.148 [pkcs15-init] reader-pcsc.c:466:pcsc_connect: Aktiv Rutoken S 00 00:SCardConnect failed: 0x8010000f
0xb724e6c0 14:11:09.148 [pkcs15-init] card.c:231:sc_connect_card: returning with: -1100 (Generic reader error)
Failed to connect to card: Generic reader error</code></pre></div><p>openct-tool list<br /></p><div class="codebox"><pre><code>biiont@bitheap ~ % openct-tool list
  0 Rutoken S driver</code></pre></div><p>opensc-tool -l<br /></p><div class="codebox"><pre><code>biiont@bitheap ~ % opensc-tool -l  
0xb72536c0 14:12:55.673 [opensc-tool] ctx.c:659:sc_context_create: ===================================
0xb72536c0 14:12:55.673 [opensc-tool] ctx.c:660:sc_context_create: opensc version: 0.12.2
0xb72536c0 14:12:55.673 [opensc-tool] reader-pcsc.c:657:pcsc_init: PC/SC options: connect_exclusive=0 disconnect_action=1 transaction_end_action=0 reconnect_action=0 enable_pinpad=1
0xb72536c0 14:12:55.673 [opensc-tool] reader-pcsc.c:870:pcsc_detect_readers: called
0xb72536c0 14:12:55.673 [opensc-tool] reader-pcsc.c:878:pcsc_detect_readers: Probing pcsc readers
0xb72536c0 14:12:55.673 [opensc-tool] reader-pcsc.c:900:pcsc_detect_readers: Establish pcsc context
0xb72536c0 14:12:55.674 [opensc-tool] reader-pcsc.c:948:pcsc_detect_readers: Found new pcsc reader &#039;Aktiv Rutoken S 00 00&#039;
0xb72536c0 14:12:55.674 [opensc-tool] reader-pcsc.c:277:refresh_attributes: Aktiv Rutoken S 00 00 check
0xb72536c0 14:12:56.074 [opensc-tool] reader-pcsc.c:301:refresh_attributes: current  state: 0x00000022
0xb72536c0 14:12:56.074 [opensc-tool] reader-pcsc.c:302:refresh_attributes: previous state: 0x00000000
0xb72536c0 14:12:56.074 [opensc-tool] reader-pcsc.c:356:refresh_attributes: card present, changed
0xb72536c0 14:12:56.074 [opensc-tool] reader-pcsc.c:979:pcsc_detect_readers: Requesting reader features ... 
0xb72536c0 14:12:56.074 [opensc-tool] reader-pcsc.c:993:pcsc_detect_readers: Aktiv Rutoken S 00 00:SCardConnect(SHARED): 0x8010000f
0xb72536c0 14:12:56.074 [opensc-tool] reader-pcsc.c:1023:pcsc_detect_readers: returning with: 0 (Success)
# Detected readers (pcsc)
Nr.  Card  Features  Name
0xb72536c0 14:12:56.074 [opensc-tool] sc.c:195:sc_detect_card_presence: called
0xb72536c0 14:12:56.074 [opensc-tool] reader-pcsc.c:364:pcsc_detect_card_presence: called
0xb72536c0 14:12:56.074 [opensc-tool] reader-pcsc.c:277:refresh_attributes: Aktiv Rutoken S 00 00 check
0xb72536c0 14:12:56.475 [opensc-tool] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
0xb72536c0 14:12:56.475 [opensc-tool] reader-pcsc.c:369:pcsc_detect_card_presence: returning with: 1
0xb72536c0 14:12:56.475 [opensc-tool] sc.c:200:sc_detect_card_presence: returning with: 1
0    Yes             Aktiv Rutoken S 00 00
0xb72536c0 14:12:56.475 [opensc-tool] ctx.c:737:sc_release_context: called
0xb72536c0 14:12:56.475 [opensc-tool] reader-pcsc.c:736:pcsc_finish: called</code></pre></div><p>opensc-tool -n<br /></p><div class="codebox"><pre><code>biiont@bitheap ~ % opensc-tool -n
0xb73046c0 14:13:02.097 [opensc-tool] ctx.c:659:sc_context_create: ===================================
0xb73046c0 14:13:02.097 [opensc-tool] ctx.c:660:sc_context_create: opensc version: 0.12.2
0xb73046c0 14:13:02.097 [opensc-tool] reader-pcsc.c:657:pcsc_init: PC/SC options: connect_exclusive=0 disconnect_action=1 transaction_end_action=0 reconnect_action=0 enable_pinpad=1
0xb73046c0 14:13:02.097 [opensc-tool] reader-pcsc.c:870:pcsc_detect_readers: called
0xb73046c0 14:13:02.097 [opensc-tool] reader-pcsc.c:878:pcsc_detect_readers: Probing pcsc readers
0xb73046c0 14:13:02.097 [opensc-tool] reader-pcsc.c:900:pcsc_detect_readers: Establish pcsc context
0xb73046c0 14:13:02.097 [opensc-tool] reader-pcsc.c:948:pcsc_detect_readers: Found new pcsc reader &#039;Aktiv Rutoken S 00 00&#039;
0xb73046c0 14:13:02.097 [opensc-tool] reader-pcsc.c:277:refresh_attributes: Aktiv Rutoken S 00 00 check
0xb73046c0 14:13:02.498 [opensc-tool] reader-pcsc.c:301:refresh_attributes: current  state: 0x00000022
0xb73046c0 14:13:02.498 [opensc-tool] reader-pcsc.c:302:refresh_attributes: previous state: 0x00000000
0xb73046c0 14:13:02.498 [opensc-tool] reader-pcsc.c:356:refresh_attributes: card present, changed
0xb73046c0 14:13:02.498 [opensc-tool] reader-pcsc.c:979:pcsc_detect_readers: Requesting reader features ... 
0xb73046c0 14:13:02.498 [opensc-tool] reader-pcsc.c:993:pcsc_detect_readers: Aktiv Rutoken S 00 00:SCardConnect(SHARED): 0x8010000f
0xb73046c0 14:13:02.498 [opensc-tool] reader-pcsc.c:1023:pcsc_detect_readers: returning with: 0 (Success)
0xb73046c0 14:13:02.498 [opensc-tool] sc.c:195:sc_detect_card_presence: called
0xb73046c0 14:13:02.498 [opensc-tool] reader-pcsc.c:364:pcsc_detect_card_presence: called
0xb73046c0 14:13:02.498 [opensc-tool] reader-pcsc.c:277:refresh_attributes: Aktiv Rutoken S 00 00 check
0xb73046c0 14:13:02.898 [opensc-tool] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
0xb73046c0 14:13:02.898 [opensc-tool] reader-pcsc.c:369:pcsc_detect_card_presence: returning with: 1
0xb73046c0 14:13:02.898 [opensc-tool] sc.c:200:sc_detect_card_presence: returning with: 1
Using reader with a card: Aktiv Rutoken S 00 00
0xb73046c0 14:13:02.898 [opensc-tool] sc.c:195:sc_detect_card_presence: called
0xb73046c0 14:13:02.898 [opensc-tool] reader-pcsc.c:364:pcsc_detect_card_presence: called
0xb73046c0 14:13:02.898 [opensc-tool] reader-pcsc.c:277:refresh_attributes: Aktiv Rutoken S 00 00 check
0xb73046c0 14:13:03.299 [opensc-tool] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
0xb73046c0 14:13:03.299 [opensc-tool] reader-pcsc.c:369:pcsc_detect_card_presence: returning with: 1
0xb73046c0 14:13:03.299 [opensc-tool] sc.c:200:sc_detect_card_presence: returning with: 1
0xb73046c0 14:13:03.299 [opensc-tool] card.c:115:sc_connect_card: called
0xb73046c0 14:13:03.299 [opensc-tool] reader-pcsc.c:444:pcsc_connect: called
0xb73046c0 14:13:03.299 [opensc-tool] reader-pcsc.c:277:refresh_attributes: Aktiv Rutoken S 00 00 check
0xb73046c0 14:13:03.699 [opensc-tool] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
0xb73046c0 14:13:03.699 [opensc-tool] reader-pcsc.c:466:pcsc_connect: Aktiv Rutoken S 00 00:SCardConnect failed: 0x8010000f
0xb73046c0 14:13:03.699 [opensc-tool] card.c:231:sc_connect_card: returning with: -1100 (Generic reader error)
Failed to connect to card: Generic reader error
0xb73046c0 14:13:03.699 [opensc-tool] ctx.c:737:sc_release_context: called
0xb73046c0 14:13:03.699 [opensc-tool] reader-pcsc.c:736:pcsc_finish: called</code></pre></div><p>Все комманды выполнялись при debug=6 в файле /etc/opensc/opensc.conf</p><br /><p>Дистрибутив: Debian Sid.</p><p>Версии ПО:<br />* openct 0.6.20-1.2<br />* opensc 0.12.2-2<br />* pcscd 1.8.2-1<br />* libccid -1.4.5-1&nbsp; (с установленной библиотекой и удаленной libccid результат одинаков)</p>]]></content>
			<author>
				<name><![CDATA[biiont]]></name>
				<uri>https://forum.rutoken.ru/user/8392/</uri>
			</author>
			<updated>2012-02-07T10:12:52Z</updated>
			<id>https://forum.rutoken.ru/post/4440/#p4440</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: linux & openct токен виден но не форматируется]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/4158/#p4158" />
			<content type="html"><![CDATA[<p>Поставьте, пожалуйста, в файле /etc/opensc.conf значение debug = 6 и запустите <br /></p><div class="codebox"><pre><code>$pkcs15-init --erase-card</code></pre></div><p>Посмотрим, что он скажет.</p>]]></content>
			<author>
				<name><![CDATA[Кирилл Мещеряков]]></name>
				<uri>https://forum.rutoken.ru/user/6786/</uri>
			</author>
			<updated>2011-10-20T09:24:38Z</updated>
			<id>https://forum.rutoken.ru/post/4158/#p4158</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: linux & openct токен виден но не форматируется]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/4157/#p4157" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Кирилл Мещеряков пишет:</cite><blockquote><p>Вы очистили Рутокен, но не создали на нем нужной структуры pkcs#15.</p></blockquote></div><p>В том то и дело, что ни очистить, ни создать структуру pkcs#15 мне не даёт:</p><br /><p>pkcs15-init --erase-card Using reader with a card: Aktiv Rutoken S 00 00<br />Failed to connect to card: Generic reader error</p><p>pkcs15-init --create-pkcs15 --so-pin &quot;034009100280477&quot; --so-puk &quot;&quot;<br />Using reader with a card: Aktiv Rutoken S 00 00<br />User PIN required.<br />Please enter User PIN: <br />Failed to create PKCS #15 meta structure: File already exists</p><p>pkcs15-init --store-pin --label &quot;User PIN&quot; --auth-id 02 --pin &quot;12345678&quot; --puk &quot;&quot;<br />Using reader with a card: Aktiv Rutoken S 00 00<br />Failed to connect to card: Generic reader error</p>]]></content>
			<author>
				<name><![CDATA[chollya]]></name>
				<uri>https://forum.rutoken.ru/user/7924/</uri>
			</author>
			<updated>2011-10-20T09:20:24Z</updated>
			<id>https://forum.rutoken.ru/post/4157/#p4157</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: linux & openct токен виден но не форматируется]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/4156/#p4156" />
			<content type="html"><![CDATA[<p>Вы очистили Рутокен, но не создали на нем нужной структуры pkcs#15.<br />Вполне естественно, что утилиты не находят нужных им объектов.</p><p>Вот как выглядит полная переинициализация Рутокена S:</p><div class="codebox"><pre><code>$ pkcs15-init --erase-card
$ pkcs15-init --create-pkcs15 --so-pin &quot;87654321&quot; --so-puk &quot;&quot;
$ pkcs15-init --store-pin --label &quot;User PIN&quot; --auth-id 02 --pin &quot;12345678&quot; --puk &quot;&quot;</code></pre></div><br /><p>Подробности здесь:</p><p><a href="http://www.opensc-project.org/opensc/wiki/AktivRutokenS">http://www.opensc-project.org/opensc/wiki/AktivRutokenS</a></p>]]></content>
			<author>
				<name><![CDATA[Кирилл Мещеряков]]></name>
				<uri>https://forum.rutoken.ru/user/6786/</uri>
			</author>
			<updated>2011-10-20T09:13:21Z</updated>
			<id>https://forum.rutoken.ru/post/4156/#p4156</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[linux & openct токен виден но не форматируется]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/4155/#p4155" />
			<content type="html"><![CDATA[<p>Есть новый rutoken, который отлично виден через openct:</p><p>opensc-tool --list-readers<br /># Detected readers (pcsc)<br />Nr.&nbsp; Card&nbsp; Features&nbsp; Name<br />0&nbsp; &nbsp; Yes&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Aktiv Rutoken S 00 00</p><p>но при попытке отформатировать его или прочитать что-либо, даёт ошибку:</p><p>opensc-tool --reader 0 --name<br />Matched ATR in reader: Aktiv Rutoken S 00 00<br />Failed to connect to card: Generic reader error</p><p>pkcs15-init --erase-card <br />Using reader with a card: Aktiv Rutoken S 00 00<br />Failed to connect to card: Generic reader error</p><p>версии приложений:</p><p>pcscd&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1.7.4<br />openct&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.6.20<br />opensc&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.12.2</p><p>Что я делаю не так?</p>]]></content>
			<author>
				<name><![CDATA[chollya]]></name>
				<uri>https://forum.rutoken.ru/user/7924/</uri>
			</author>
			<updated>2011-10-20T09:05:58Z</updated>
			<id>https://forum.rutoken.ru/post/4155/#p4155</id>
		</entry>
</feed>
