<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум Рутокен &mdash; рутокен ecp mac keychain]]></title>
	<link rel="self" href="https://forum.rutoken.ru/feed/atom/topic/2037/" />
	<updated>2014-04-25T08:17:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.rutoken.ru/topic/2037/</id>
		<entry>
			<title type="html"><![CDATA[Re: рутокен ecp mac keychain]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/7176/#p7176" />
			<content type="html"><![CDATA[<p>Здравствуйте, Евгений.<br />Да все в общем-то просто, часть инструкции вы мне сами предоставили выше. Генерируем сертификат так, как описано выше. Далее необходимо экспортировать сертификат и ключ CA в формате pkcs12 и добавить их в связку &quot;Система&quot;, далее сделать его доверенным. После чего проверка сертификата на токене проходит автоматически &quot;на ура&quot;. Потом, соответственно, выполняем:</p><p>sc_auth hash<br />смотрим хеш сертификата на токене, выполняем<br />sc_auth accept -u &lt;username&gt; -h &lt;hash&gt;</p><p>Аутенфикация работает, но с ограничениями, описаными мною выше.</p>]]></content>
			<author>
				<name><![CDATA[artscout]]></name>
				<uri>https://forum.rutoken.ru/user/9350/</uri>
			</author>
			<updated>2014-04-25T08:17:53Z</updated>
			<id>https://forum.rutoken.ru/post/7176/#p7176</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: рутокен ecp mac keychain]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/7141/#p7141" />
			<content type="html"><![CDATA[<p>Здравствуйте, artscout.</p><p>Не могли бы вы подробней описать, как вы добились работы авторизации по смарткарте (пусть и рабочей не во всех режимах)? Меня в OS X 10.8 authorizationhost срезает на проверке цепочки сертификатов (хотя сертификат CA добавлен в System Keychain), с сообщениями:</p><p>authorizationhost[379]: validate chain started<br />authorizationhost[379]: validate chain completed with: 1 </p><p>или </p><p>authorizationhost[379]: validate chain started<br />authorizationhost[379]: Certificate could not be verified: 5<br />authorizationhost[379]: validate chain completed with: 5</p><p>Было бы прекрасно, если бы вы поделились успешным опытом. Тем более, это может способствовать решению вашей проблемы.</p>]]></content>
			<author>
				<name><![CDATA[Евгений Мироненко]]></name>
				<uri>https://forum.rutoken.ru/user/8673/</uri>
			</author>
			<updated>2014-04-15T17:43:15Z</updated>
			<id>https://forum.rutoken.ru/post/7141/#p7141</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: рутокен ecp mac keychain]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/7098/#p7098" />
			<content type="html"><![CDATA[<p>В общем сделал все описанным способом, сертификат/ключи опознаются (пришлось при этом добавить сертификат своего самосгенерированного CA в Keychain системы, чтобы сертификат проходил проверку). Далее начались следующие приключения:<br />Добавил сертификат с токена в sc_auth. Если перезагрузить MacOSX и на экране логина вставить токен, то все работает как надо - Password prompt меняется на PIN prompt и после введения оного благополучно входим в систему. Однако если мы заблокировали экран или пытаемся аутенфицироваться в процессе выполнения чего-либо, требующего привилегированного доступа - нас ждет полный облом, окно с вводом пароля/пин кода не появляется вообще, а в system.log появляется следующее сообщение:</p><br /><p>Mar 27 11:46:44 localhost authorizationhost[17078]: ignorableRevocationStatusCode entered.<br />Mar 27 11:46:44 --- last message repeated 1 time ---<br />Mar 27 11:46:44 localhost authorizationhost[17078]: _CanIgnoreLeafStatusCodes return: true<br />Mar 27 11:46:44 localhost authorizationhost[17078]: -[__NSArrayM length]: unrecognized selector sent to instance 0x7f8f81e1c010<br />Mar 27 11:46:44 localhost authorizationhost[17078]: *** Terminating app due to uncaught exception &#039;NSInvalidArgumentException&#039;, reason: &#039;-[__NSArrayM length]: unrecognized selector sent to instance 0x7f8f81e1c010&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; *** First throw call stack:<br />&nbsp; &nbsp; &nbsp; &nbsp; (<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp;CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00007fff8b19c25c __exceptionPreprocess + 172<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp;libobjc.A.dylib&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x00007fff8e2d5e75 objc_exception_throw + 43<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp;CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00007fff8b19f12d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3&nbsp; &nbsp;CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00007fff8b0fa3f2 ___forwarding___ + 1010<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4&nbsp; &nbsp;CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00007fff8b0f9f78 _CF_forwarding_prep_0 + 120<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5&nbsp; &nbsp;CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00007fff8b06fd48 CFStringCompareWithOptionsAndLocale + 72<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 6&nbsp; &nbsp;authorizationhost&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x00000001061f43d9 SFBuiltinSmartCardSniffer_hint_user + 253<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 7&nbsp; &nbsp;CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00007fff8b090b76 __CFDictionaryApplyFunction_block_invoke + 22<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 8&nbsp; &nbsp;CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00007fff8b090b3c CFBasicHashApply + 124<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 9&nbsp; &nbsp;CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00007fff8b090a8d CFDictionaryApplyFunction + 173<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10&nbsp; authorizationhost&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x00000001061f47a7 SFBuiltinSmartCardSniffer_hint_user + 1227<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 11&nbsp; authorizationhost&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x00000001061f127c nullPluginCreate + 1345<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 12&nbsp; libdispatch.dylib&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x00007fff92f0f2ad _dispatch_client_callout + 8<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 13&nbsp; libdispatch.dylib&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x00007fff92f17b76 _dispatch_barrier_sync_f_slow_invoke + 46<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 14&nbsp; libdispatch.dylib&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x00007fff92f0f2ad _dispatch_client_callout + 8<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 15&nbsp; libdispatch.dylib&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x00007fff92f16f03 _dispatch_main_queue_callback_4CF + 333<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 16&nbsp; CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00007fff8b103679 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 17&nbsp; CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00007fff8b0be954 __CFRunLoopRun + 1636<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 18&nbsp; CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00007fff8b0be0b5 CFRunLoopRunSpecific + 309<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 19&nbsp; Foundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00007fff900a8adc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 253<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 20&nbsp; Foundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00007fff901914aa -[NSRunLoop(NSRunLoop) run] + 74<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 21&nbsp; authorizationhost&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x00000001061f744b main + 284<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 22&nbsp; libdyld.dylib&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x00007fff8b4125fd start + 1<br />&nbsp; &nbsp; &nbsp; &nbsp; )<br />Mar 27 11:46:44 localhost ReportCrash[17079]: Metadata.framework [Error]: couldn&#039;t get the client port<br />Mar 27 11:46:44 localhost ReportCrash[17079]: DebugSymbols was unable to start a spotlight query: spotlight is not responding or disabled.<br />Mar 27 11:46:45 localhost com.apple.authd[37]: engine[17077]: evaluate returned -60008 returning errAuthorizationInternal<br />Mar 27 11:46:45 localhost com.apple.launchd[1] (com.apple.security.authhost.00000000-0000-0000-0000-0000000186A8[17078]): Job appears to have crashed: Abort trap: 6</p><br /><p>куда по этому поводу писать я так и не нашел.</p>]]></content>
			<author>
				<name><![CDATA[artscout]]></name>
				<uri>https://forum.rutoken.ru/user/9350/</uri>
			</author>
			<updated>2014-03-31T08:51:41Z</updated>
			<id>https://forum.rutoken.ru/post/7098/#p7098</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: рутокен ecp mac keychain]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/7076/#p7076" />
			<content type="html"><![CDATA[<p>Евгений, спасибо большое, сегодня попробую, если что сообщу =)</p>]]></content>
			<author>
				<name><![CDATA[artscout]]></name>
				<uri>https://forum.rutoken.ru/user/9350/</uri>
			</author>
			<updated>2014-03-24T07:43:09Z</updated>
			<id>https://forum.rutoken.ru/post/7076/#p7076</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: рутокен ecp mac keychain]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/7074/#p7074" />
			<content type="html"><![CDATA[<p>Здравствуйте, artscout.</p><p>Ваша задача может быть решена следующим образом.<br />1. Создадим CA<br /></p><div class="codebox"><pre><code>$ /usr/bin/openssl req -out ca.pem -new -x509
Generating a 1024 bit RSA private key
..............++++++
...........................................................................................................++++++
writing new private key to &#039;privkey.pem&#039;
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter &#039;.&#039;, the field will be left blank.
-----
Country Name (2 letter code) [AU]:RU
State or Province Name (full name) [Some-State]:a
Locality Name (eg, city) []:a
Organization Name (eg, company) [Internet Widgits Pty Ltd]:a
Organizational Unit Name (eg, section) []:a
Common Name (e.g. server FQDN or YOUR name) []:a
Email Address []:a</code></pre></div><p>2. Создадим ключевую пару на токене:<br /></p><div class="codebox"><pre><code>$ pkcs11-tool --module /usr/lib/librtpkcs11ecp.so --keypairgen --key-type rsa:1024 -l --id 49 --label &quot;I&quot;</code></pre></div><p>3. Создадим запрос на сертификат:<br /></p><div class="codebox"><pre><code>$ /usr/bin/openssl
openssl&gt; engine dynamic -pre SO_PATH:/Library/OpenSC/lib/engines/engine_pkcs11.so -pre ID:pkcs11 -pre LIST_ADD:1 -pre LOAD -pre MODULE_PATH:/usr/lib/librtpkcs11ecp.so
openssl&gt; req -engine pkcs11 -keyform engine -key 49 -new -text -out newcert.csr -subj &quot;/O=abc/O=users/O=abc/CN=Eugene Mironenko&quot;</code></pre></div><p>4. Создадим файл с расширением v3, где заполнена секция keyUsage:<br /></p><div class="codebox"><pre><code>$ echo &quot;authorityKeyIdentifier=keyid,issuer&quot;&gt;v3.ext
$ echo &quot;basicConstraints=CA:FALSE&quot;&gt;&gt;v3.ext
$ echo &quot;keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment&quot;&gt;&gt;v3.ext</code></pre></div><p>и файл серийного номера<br /></p><div class="codebox"><pre><code>$ echo &quot;00&quot;&gt;file.srl</code></pre></div><p>5. С помощью CA выпишем сертификат по запросу:<br /></p><div class="codebox"><pre><code>$ /usr/bin/openssl x509 -days 365 -req -in newcert.csr -extfile v3.ext -CA CA.pem -CAkey privkey.pem -CAserial file.srl -out cert.pem</code></pre></div><p>6. Перекодируем сертификат:<br /></p><div class="codebox"><pre><code>$ /usr/bin/openssl x509 -in cert.pem -outform der -out cert.der</code></pre></div><p>7. Записываем сертификат на токен:<br /></p><div class="codebox"><pre><code>$ pkcs11-tool --module  /usr/lib/librtpkcs11ecp.so -w cert.der --type cert --login --label &quot;I&quot; --id 49</code></pre></div><p>Перетыкаем токен и смотрим в keychain.</p>]]></content>
			<author>
				<name><![CDATA[Евгений Мироненко]]></name>
				<uri>https://forum.rutoken.ru/user/8673/</uri>
			</author>
			<updated>2014-03-21T16:16:26Z</updated>
			<id>https://forum.rutoken.ru/post/7074/#p7074</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: рутокен ecp mac keychain]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/7073/#p7073" />
			<content type="html"><![CDATA[<p>И благополучно запутался... ммм как же мне все правильно сделать? Создать отдельный CA, далее подсунуть csr подписаный ключом с токена в этот CA -это понятно. но как дальше на токен засовывать сертификат - ca то будет недоступен для проверки?</p>]]></content>
			<author>
				<name><![CDATA[artscout]]></name>
				<uri>https://forum.rutoken.ru/user/9350/</uri>
			</author>
			<updated>2014-03-21T08:47:37Z</updated>
			<id>https://forum.rutoken.ru/post/7073/#p7073</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: рутокен ecp mac keychain]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/7072/#p7072" />
			<content type="html"><![CDATA[<p>Так. Вот тут я немножко не понял, что же мне дальше то делать? И почему self-signed certificate внезапно считается CA?</p><p>UPD</p><p>все. понял. действительно CA:TRUE. Пошел дальше разбираться</p>]]></content>
			<author>
				<name><![CDATA[artscout]]></name>
				<uri>https://forum.rutoken.ru/user/9350/</uri>
			</author>
			<updated>2014-03-21T08:22:58Z</updated>
			<id>https://forum.rutoken.ru/post/7072/#p7072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: рутокен ecp mac keychain]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/7071/#p7071" />
			<content type="html"><![CDATA[<p>Доброго времени суток, artscout.</p><p>Действительно, инструкция по указанной вами ссылке немного устарела.<br />В настоящее время модуль Tokend устанавливается вместе с библиотекой librtpkcs11ecp.[dylib/so] посредством установщика библиотеки: <a href="https://www.rutoken.ru/support/download/get/?fid=19">https://www.rutoken.ru/support/download/get/?fid=19</a> .<br />Модуль Tokend -- наследство от Gemalto (<a href="http://smartcardservices.macosforge.org/trac/browser/trunk/Tokend/PKCS11">http://smartcardservices.macosforge.org … end/PKCS11</a>) -- имеет ряд ограничений, с которыми вы имели неудачу столкнуться. В частности, tokend, а в его задачу входит снабжение данными keychain-а, отображает только приватные ключи, для которых есть не корневой (not CA) сертификат x.509 с расширением keyUsage. Проверка выглядит примерно следующим образом (см. <a href="http://smartcardservices.macosforge.org/trac/browser/trunk/Tokend/PKCS11/GemaltoToken.cpp)">http://smartcardservices.macosforge.org … Token.cpp)</a>: </p><div class="codebox"><pre><code>if (false == cert-&gt;isCA())
        {
            // If the current certificat is able to perform a cryptographic operation
            // attributes are taken from x.509 keyUsage extension
            if (cert-&gt;verify() || cert-&gt;verifyRecover() || cert-&gt;encrypt() || cert-&gt;wrap()) 
            {
                // Create a private key
            }
        }</code></pre></div><p>Сертификат, созданный вами через openssl, не удовлетворяет ни первому, ни второму условию.</p><p>Вдогонку, pkcs11-tool не показывает приватные ключи в неавторизованной сессии, что вполне нормально. Так приватный ключ отображается: <br /></p><div class="codebox"><pre><code>pkcs11-tool --module /usr/lib/librtpkcs11ecp.so -O -l user</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Евгений Мироненко]]></name>
				<uri>https://forum.rutoken.ru/user/8673/</uri>
			</author>
			<updated>2014-03-20T20:10:25Z</updated>
			<id>https://forum.rutoken.ru/post/7071/#p7071</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: рутокен ecp mac keychain]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/7066/#p7066" />
			<content type="html"><![CDATA[<p>В конфигурации с использованием OpenSC + pkcs15 видно все, как в pkcs15-tool, так и в KeyChain. Но хочется работы именно с &quot;родной&quot; библиотекой, т.к. токен может использоваться еще в windows, с puttysc все работает прекрасно с токеном, инициализированным и настроенным как описано выше.</p>]]></content>
			<author>
				<name><![CDATA[artscout]]></name>
				<uri>https://forum.rutoken.ru/user/9350/</uri>
			</author>
			<updated>2014-03-19T09:56:09Z</updated>
			<id>https://forum.rutoken.ru/post/7066/#p7066</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: рутокен ecp mac keychain]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/7065/#p7065" />
			<content type="html"><![CDATA[<p>Вдогонку, pkcs11-tool тоже не показывает закрытые части, только публичный ключ и сам сертификат. </p><p>localhost:~ darkstar$ pkcs11-tool --module /usr/lib/librtpkcs11ecp.so -O<br />Using slot 0 with a present token (0x0)<br />Public Key Object; RSA 2048 bits<br />&nbsp; label:<br />&nbsp; ID:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;45<br />&nbsp; Usage:&nbsp; &nbsp; &nbsp; encrypt, verify, wrap<br />Certificate Object, type = X.509 cert<br />&nbsp; label:<br />&nbsp; ID:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;45</p>]]></content>
			<author>
				<name><![CDATA[artscout]]></name>
				<uri>https://forum.rutoken.ru/user/9350/</uri>
			</author>
			<updated>2014-03-19T09:45:11Z</updated>
			<id>https://forum.rutoken.ru/post/7065/#p7065</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: рутокен ecp mac keychain]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/7064/#p7064" />
			<content type="html"><![CDATA[<p>Нет, все-таки одна небольшая проблемка есть. Порядок действий:<br />отформатировал рутокен в windows (кстати, а есть ли какие-либо сроки, когда будет доступна &quot;родная&quot; утилитка под мак?)<br />сгенерировал ключ rsa: pkcs11-tool --module /usr/lib/librtpkcs11ecp.so --keypairgen --key-type rsa:2048 -l --id 45<br />далее в openssl генерирую сертификат:</p><p>OpenSSL&gt; engine dynamic -pre SO_PATH:/Library/OpenSC/lib/engines/engine_pkcs11.so -pre ID:pkcs11 -pre LIST_ADD:1 -pre LOAD -pre MODULE_PATH:/usr/lib/pkcs11/librtpkcs11ecp.dylib<br />(dynamic) Dynamic engine loading support<br />[Success]: SO_PATH:/Library/OpenSC/lib/engines/engine_pkcs11.so<br />[Success]: ID:pkcs11<br />[Success]: LIST_ADD:1<br />[Success]: LOAD<br />[Success]: MODULE_PATH:/usr/lib/pkcs11/librtpkcs11ecp.dylib<br />Loaded: (pkcs11) pkcs11 engine<br />OpenSSL&gt; req -engine pkcs11 -new -key id_45 -keyform engine -x509 -out cert.pem -text -days 365<br />engine &quot;pkcs11&quot; set.<br />PKCS#11 token PIN:</p><p>сертификат сгенерирован, далее перекодирую в DER: openssl x509 -in cert.pem -inform pem -out cert.der -outform der<br />Записываю на токен: pkcs11-tool --module /usr/lib/librtpkcs11ecp.so -l -y cert -w cert.crt --id 45</p><p>И все бы хорошо, но виден только сам сертификат, ключ не видно. И, видимо, поэтому сертификат виден только при просмотре всех объектов и в список сертификатов &quot;мои сертификаты&quot; не попадает. Что тут можно сделать?</p>]]></content>
			<author>
				<name><![CDATA[artscout]]></name>
				<uri>https://forum.rutoken.ru/user/9350/</uri>
			</author>
			<updated>2014-03-19T09:34:22Z</updated>
			<id>https://forum.rutoken.ru/post/7064/#p7064</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: рутокен ecp mac keychain]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/7047/#p7047" />
			<content type="html"><![CDATA[<p>Каким-то неведомым образом сегодня оно само заработало, несмотря на то, что вчера вставлял-вытаскивал ключ много раз, а машину вообще не перезагружал. Все страньше и страньше.</p>]]></content>
			<author>
				<name><![CDATA[artscout]]></name>
				<uri>https://forum.rutoken.ru/user/9350/</uri>
			</author>
			<updated>2014-03-18T08:13:42Z</updated>
			<id>https://forum.rutoken.ru/post/7047/#p7047</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[рутокен ecp mac keychain]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/7045/#p7045" />
			<content type="html"><![CDATA[<p>И новый вопрос.<br />Тут: <a href="http://dev.rutoken.ru/pages/viewpage.action?pageId=4227177">http://dev.rutoken.ru/pages/viewpage.ac … Id=4227177</a> есть инструкция по работе с KeyChain. Однако возник вопрос о актуальности данной инструкции. <br />1. Пакета gemalto по указанной ссылке нет. При этом tokend видимо входит в состав пакета с динамической библиотекой для mac os x?<br />2. KeyChain определяет токен как RuToken ECP (ни слова о gemalto), но ps aux показывает, что запущен токенд гемальто:</p><p>(bash-3.2# ps aux | grep toke<br />_tokend&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;263&nbsp; &nbsp;0,0&nbsp; 0,0&nbsp; 2472144&nbsp; &nbsp;3524&nbsp; &nbsp;??&nbsp; S&nbsp; &nbsp; &nbsp;6:48&nbsp; &nbsp; &nbsp;0:00.11 /System/Library/Security/tokend/RTPKCS11.tokend/Contents/MacOS/RTPKCS11 5 Aktiv Rutoken ECP 00 00 0c6409bb97f0000000000000000000000000000220000000f0000003b8b015275746f6b656e20445320c1000000000000000000000000000000000000)</p><p>Однако ключей/сертификатов KeyChain просто не видит. При этом:</p><p>localhost:~ darkstar$ pkcs11-tool --module=/usr/lib/librtpkcs11ecp.so -O<br />Using slot 0 with a present token (0x0)<br />Public Key Object; RSA 2048 bits<br />&nbsp; label:<br />&nbsp; ID:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;45<br />&nbsp; Usage:&nbsp; &nbsp; &nbsp; encrypt, verify, wrap<br />Certificate Object, type = X.509 cert<br />&nbsp; label:<br />&nbsp; ID:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;45</p><p>Показывает пустой токен. Имеется ли у вас инструкция для macosx 10.9?</p>]]></content>
			<author>
				<name><![CDATA[artscout]]></name>
				<uri>https://forum.rutoken.ru/user/9350/</uri>
			</author>
			<updated>2014-03-17T15:06:02Z</updated>
			<id>https://forum.rutoken.ru/post/7045/#p7045</id>
		</entry>
</feed>
