<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум Рутокен &mdash; Коды ошибок Рутокен Плагина]]></title>
		<link>https://forum.rutoken.ru/topic/2561/</link>
		<atom:link href="https://forum.rutoken.ru/feed/rss/topic/2561/" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Коды ошибок Рутокен Плагина».]]></description>
		<lastBuildDate>Fri, 17 Feb 2017 09:17:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Коды ошибок Рутокен Плагина]]></title>
			<link>https://forum.rutoken.ru/post/10472/#p10472</link>
			<description><![CDATA[<p>Большое спасибо. <br />Получилось.</p>]]></description>
			<author><![CDATA[null@example.com (Lokky)]]></author>
			<pubDate>Fri, 17 Feb 2017 09:17:20 +0000</pubDate>
			<guid>https://forum.rutoken.ru/post/10472/#p10472</guid>
		</item>
		<item>
			<title><![CDATA[Re: Коды ошибок Рутокен Плагина]]></title>
			<link>https://forum.rutoken.ru/post/10471/#p10471</link>
			<description><![CDATA[<p>Здравствуйте, Lokky!</p><p>В коде должны быть заполнены значения полей</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rdn: &quot;pseudonym&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value: &quot;&quot; //Ошибка!!! Не должно быть пустым!</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rdn: &quot;surname&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value: firstName<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rdn: &quot;givenName&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value: &quot;&quot; //Ошибка!!! Не должно быть пустым!</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },</p><br /><p>Посмотреть интерпретации кодов ошибок можно в примерах для криптоплагина на github<br /><a href="https://github.com/AktivCo/rutoken-plugin-demo/">https://github.com/AktivCo/rutoken-plugin-demo/</a><br />в файле cryptoplugin-production\plugin-js\demo\present.js</p>]]></description>
			<author><![CDATA[null@example.com (Анатолий Убушаев)]]></author>
			<pubDate>Fri, 17 Feb 2017 08:53:12 +0000</pubDate>
			<guid>https://forum.rutoken.ru/post/10471/#p10471</guid>
		</item>
		<item>
			<title><![CDATA[Коды ошибок Рутокен Плагина]]></title>
			<link>https://forum.rutoken.ru/post/10470/#p10470</link>
			<description><![CDATA[<p>Подскажите, пожалуйста, где можно посмотреть коды ошибок Рутокен Плагина.<br />Работаю через javascript с плагином версии 2.8.4.0, через Рутокен Плагин API</p><p>При попытке создать запрос на сертификат в консоль выходит код 2. Что он значит? Где-то есть расшифровка этих кодов? </p><div class="codebox"><pre><code>var subject = [
            {
                rdn: &#039;countryName&#039;,
                value: &#039;RU&#039;
            },
            {
                rdn: &#039;stateOrProvinceName&#039;,
                value: region
            },
            {
                rdn: &#039;localityName&#039;,
                value: city
            },
            {
                rdn: &#039;streetAddress&#039;,
                value: street
            },
            {
                rdn: &#039;organizationName&#039;,
                value: org
            },
            {
                rdn: &#039;organizationalUnitName&#039;,
                value: subdiv
            },
            {
                rdn: &#039;title&#039;,
                value: post
            },
            {
                rdn: &#039;commonName&#039;,
                value: firstName + &#039; &#039; + lastName + &#039; &#039; + patronymic
            },
            {
                rdn: &#039;postalAddress&#039;,
                value: region + &#039; &#039; + city + &#039; &#039; + street
            },
            {
                rdn: &quot;pseudonym&quot;,
                value: &quot;&quot;
            },
            {
                rdn: &quot;surname&quot;,
                value: firstName
            },
            {
                rdn: &quot;givenName&quot;,
                value: &quot;&quot;
            },
            {
                rdn: &quot;emailAddress&quot;,
                value: email
            }
        ];

        var keyUsageVal = [
          &quot;digitalSignature&quot;
          , &quot;nonRepudiation&quot;
          , &quot;keyEncipherment&quot;
          , &quot;dataEncipherment&quot;
        ];

        var certificatePolicies = [
            //&quot;1.2.643.100.111&quot;,
            &quot;1.2.643.100.113.1&quot;, // КС1
            &quot;1.2.643.100.113.2&quot;, // КС2
            &quot;1.2.643.100.113.3&quot;, // КС3
            &quot;1.2.643.100.113.4&quot;, // КВ1
            &quot;1.2.643.100.113.5&quot;, // КВ2
            &quot;1.2.643.100.113.6&quot;  // КА1
        ];

        var extKeyUsage = [oids];

        var extensions = {
            &quot;keyUsage&quot;: keyUsageVal,
            &quot;extKeyUsage&quot;: extKeyUsage,
            &quot;certificatePolicies&quot;: certificatePolicies
        };

        var includeSubjectSignToolExt = true;
            plugin.createPkcs10(+$select_device.val(), keyId, subject, extensions, includeSubjectSignToolExt,
                function (res) {
                    console.log(res);
                    console.log(&#039;res&#039;);
                }, function (er) {
                    console.log(er);
                    console.log(&#039;error&#039;);
                });</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Lokky)]]></author>
			<pubDate>Thu, 16 Feb 2017 11:38:40 +0000</pubDate>
			<guid>https://forum.rutoken.ru/post/10470/#p10470</guid>
		</item>
	</channel>
</rss>
