<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум Рутокен &mdash; Коды ошибок Рутокен Плагина]]></title>
	<link rel="self" href="https://forum.rutoken.ru/feed/atom/topic/2561/" />
	<updated>2017-02-17T09:17:20Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.rutoken.ru/topic/2561/</id>
		<entry>
			<title type="html"><![CDATA[Re: Коды ошибок Рутокен Плагина]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/10472/#p10472" />
			<content type="html"><![CDATA[<p>Большое спасибо. <br />Получилось.</p>]]></content>
			<author>
				<name><![CDATA[Lokky]]></name>
				<uri>https://forum.rutoken.ru/user/10603/</uri>
			</author>
			<updated>2017-02-17T09:17:20Z</updated>
			<id>https://forum.rutoken.ru/post/10472/#p10472</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Коды ошибок Рутокен Плагина]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/10471/#p10471" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Анатолий Убушаев]]></name>
				<uri>https://forum.rutoken.ru/user/10096/</uri>
			</author>
			<updated>2017-02-17T08:53:12Z</updated>
			<id>https://forum.rutoken.ru/post/10471/#p10471</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Коды ошибок Рутокен Плагина]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/10470/#p10470" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Lokky]]></name>
				<uri>https://forum.rutoken.ru/user/10603/</uri>
			</author>
			<updated>2017-02-16T11:38:40Z</updated>
			<id>https://forum.rutoken.ru/post/10470/#p10470</id>
		</entry>
</feed>
