<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум Рутокен &mdash; pkcs11 + RSA]]></title>
	<link rel="self" href="https://forum.rutoken.ru/feed/atom/topic/687/" />
	<updated>2009-03-24T09:42:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.rutoken.ru/topic/687/</id>
		<entry>
			<title type="html"><![CDATA[Re: pkcs11 + RSA]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/1301/#p1301" />
			<content type="html"><![CDATA[<p>Добрый день!</p><p>В конфигурационном файле opensc нужно разрешить использовать программную генерацию RSA пары с уровня PKSC#11 для карт, которые не поддерживают это аппаратно.</p>]]></content>
			<author>
				<name><![CDATA[Алексей Несененко]]></name>
				<uri>https://forum.rutoken.ru/user/367/</uri>
			</author>
			<updated>2009-03-24T09:42:56Z</updated>
			<id>https://forum.rutoken.ru/post/1301/#p1301</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pkcs11 + RSA]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/1300/#p1300" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>sergey пишет:</cite><blockquote><p>Пытаюсь сгенерировать ключ:<br />pkcs11-tool --keypairgen --key-type rsa:2048 --pin 12345678 --label &quot;user&quot; --id 1<br />Получаю ошибку:<br />error: PKCS11 function C_GenerateKeyPair failed: rv = CKR_FUNCTION_FAILED (0x6)<br />Aborting.<br />В связи с этим хотелось бы узнать в чем причина ошибки и как всё-таки её обойти.</p></blockquote></div><p>/usr/local/etc/opensc.conf[/etc/opensc.conf]:<br />app opensc-pkcs11 {<br />&nbsp; &nbsp; &nbsp; &nbsp; pkcs11 {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; soft_keygen_allowed = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}</p>]]></content>
			<author>
				<name><![CDATA[_S]]></name>
				<uri>https://forum.rutoken.ru/user/363/</uri>
			</author>
			<updated>2009-03-24T09:02:06Z</updated>
			<id>https://forum.rutoken.ru/post/1300/#p1300</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[pkcs11 + RSA]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/1299/#p1299" />
			<content type="html"><![CDATA[<p>Предварительно отформатировал токен:<br />pkcs15-init --erase-card<br />pkcs15-init --create-pkcs15 --so-pin &quot;87654321&quot;<br />pkcs15-init --store-pin --label &quot;User PIN&quot; --auth-id 02 --pin &quot;12345678&quot;</p><p>Пытаюсь сгенерировать ключ:<br />pkcs11-tool --keypairgen --key-type rsa:2048 --pin 12345678 --label &quot;user&quot; --id 1</p><p>Получаю ошибку:<br />error: PKCS11 function C_GenerateKeyPair failed: rv = CKR_FUNCTION_FAILED (0x6)</p><p>Aborting.</p><p>В связи с этим хотелось бы узнать в чем причина ошибки и как всё-таки её обойти.</p><p>Версии железа и софта:<br />Токен: ruToken 64k140z</p><p>$ opensc-tool -i<br />opensc 0.11.7 [gcc&nbsp; 4.1.2 (Gentoo 4.1.2 p1.1)]<br />Enabled features: zlib readline iconv openssl openct nsplugin</p><p>$ openct-tool -v<br />OpenCT 0.6.15</p><p>$ pkcs15-tool -D<br />Using reader with a card: ruToken driver<br />PKCS#15 Card [Rutoken S]:<br />&nbsp; &nbsp; &nbsp; &nbsp; Version&nbsp; &nbsp; &nbsp; &nbsp; : 1<br />&nbsp; &nbsp; &nbsp; &nbsp; Serial number&nbsp; : 263C4F70<br />&nbsp; &nbsp; &nbsp; &nbsp; Manufacturer ID: Aktiv Co.<br />&nbsp; &nbsp; &nbsp; &nbsp; Last update&nbsp; &nbsp; : 20090324051951Z<br />&nbsp; &nbsp; &nbsp; &nbsp; Flags&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : EID compliant</p><p>PIN [Security Officer PIN]<br />&nbsp; &nbsp; &nbsp; &nbsp; Com. Flags: 0x3<br />&nbsp; &nbsp; &nbsp; &nbsp; ID&nbsp; &nbsp; &nbsp; &nbsp; : 01<br />&nbsp; &nbsp; &nbsp; &nbsp; Flags&nbsp; &nbsp; &nbsp;: [0x9B], case-sensitive, local, unblock-disabled, initialized, soPin<br />&nbsp; &nbsp; &nbsp; &nbsp; Length&nbsp; &nbsp; : min_len:8, max_len:16, stored_len:16<br />&nbsp; &nbsp; &nbsp; &nbsp; Pad char&nbsp; : 0xFF<br />&nbsp; &nbsp; &nbsp; &nbsp; Reference : 1<br />&nbsp; &nbsp; &nbsp; &nbsp; Type&nbsp; &nbsp; &nbsp; : ascii-numeric<br />&nbsp; &nbsp; &nbsp; &nbsp; Path&nbsp; &nbsp; &nbsp; : 3f005015</p><p>PIN [User PIN]<br />&nbsp; &nbsp; &nbsp; &nbsp; Com. Flags: 0x3<br />&nbsp; &nbsp; &nbsp; &nbsp; ID&nbsp; &nbsp; &nbsp; &nbsp; : 02<br />&nbsp; &nbsp; &nbsp; &nbsp; Flags&nbsp; &nbsp; &nbsp;: [0x1B], case-sensitive, local, unblock-disabled, initialized<br />&nbsp; &nbsp; &nbsp; &nbsp; Length&nbsp; &nbsp; : min_len:8, max_len:16, stored_len:16<br />&nbsp; &nbsp; &nbsp; &nbsp; Pad char&nbsp; : 0xFF<br />&nbsp; &nbsp; &nbsp; &nbsp; Reference : 2<br />&nbsp; &nbsp; &nbsp; &nbsp; Type&nbsp; &nbsp; &nbsp; : ascii-numeric<br />&nbsp; &nbsp; &nbsp; &nbsp; Path&nbsp; &nbsp; &nbsp; : 3f005015</p>]]></content>
			<author>
				<name><![CDATA[sergey]]></name>
				<uri>https://forum.rutoken.ru/user/4414/</uri>
			</author>
			<updated>2009-03-24T05:41:05Z</updated>
			<id>https://forum.rutoken.ru/post/1299/#p1299</id>
		</entry>
</feed>
