<?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/3390/</link>
		<atom:link href="https://forum.rutoken.ru/feed/rss/topic/3390/" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Рутокен Плагин - генерация запроса».]]></description>
		<lastBuildDate>Thu, 22 Jul 2021 08:18:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Рутокен Плагин - генерация запроса]]></title>
			<link>https://forum.rutoken.ru/post/15811/#p15811</link>
			<description><![CDATA[<p>Спасибо! Сверял запросы сгенерированные Плагином и через панель управления Рутокен. В этой части обнаружил расхождения, почему и решил обратиться.<br />Спасибо за исчерпывающую информацию!<br />P.S. Возможно в будущем это может стать актуальным.</p>]]></description>
			<author><![CDATA[null@example.com (mikrob24RUS)]]></author>
			<pubDate>Thu, 22 Jul 2021 08:18:06 +0000</pubDate>
			<guid>https://forum.rutoken.ru/post/15811/#p15811</guid>
		</item>
		<item>
			<title><![CDATA[Re: Рутокен Плагин - генерация запроса]]></title>
			<link>https://forum.rutoken.ru/post/15808/#p15808</link>
			<description><![CDATA[<p><strong>mikrob24RUS</strong>, добрый день!</p><p>Через API Плагина просто это сделать не получится, только если KeyUsage добавлять как CustomExtention.<br />Но, прежде чем советовать этот способ, уточните, пожалуйста, зачем это вам нужно.</p><p>Critical — значит, что ПО, которое впоследствии будет работать с сертификатом выданном по запросу, если встретит поля которые не знает - должно прерывать свою работу.</p><div class="quotebox"><blockquote><p>Each extension in a<br />&nbsp; &nbsp;certificate is designated as either critical or non-critical.&nbsp; A<br />&nbsp; &nbsp;certificate-using system MUST reject the certificate if it encounters<br />&nbsp; &nbsp;a critical extension it does not recognize or a critical extension<br />&nbsp; &nbsp;that contains information that it cannot process.&nbsp; A non-critical<br />&nbsp; &nbsp;extension MAY be ignored if it is not recognized, but MUST be<br />&nbsp; &nbsp;processed if it is recognized.</p></blockquote></div><p><a href="https://datatracker.ietf.org/doc/html/rfc5280#section-4.2">https://datatracker.ietf.org/doc/html/r … ection-4.2</a></p><br /><p>Современная практика предполагает знание системами поле KeyUsage.<br />Кроме того, УЦ, когда будет выдавать сертификат, сам решит делать ли его critical (даже если в запросе он non-critical)</p><div class="quotebox"><blockquote><p>Conforming CAs MUST include this extension in certificates that<br />&nbsp; &nbsp;contain public keys that are used to validate digital signatures on<br />&nbsp; &nbsp;other public key certificates or CRLs.&nbsp; When present, conforming CAs<br />&nbsp; &nbsp;SHOULD mark this extension as critical.</p></blockquote></div><p><a href="https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.3">https://datatracker.ietf.org/doc/html/r … on-4.2.1.3</a></p>]]></description>
			<author><![CDATA[null@example.com (Павел Анфимов)]]></author>
			<pubDate>Wed, 21 Jul 2021 12:03:17 +0000</pubDate>
			<guid>https://forum.rutoken.ru/post/15808/#p15808</guid>
		</item>
		<item>
			<title><![CDATA[Рутокен Плагин - генерация запроса]]></title>
			<link>https://forum.rutoken.ru/post/15806/#p15806</link>
			<description><![CDATA[<p>Здравствуйте! Подскажите пожалуйста как задать criticality: true для keyUsage?<br /></p><div class="codebox"><pre><code>var keyUsageVal = [
                    &quot;digitalSignature&quot;,
                    &quot;nonRepudiation&quot;,
                    &quot;keyEncipherment&quot;,
                    &quot;dataEncipherment&quot;
                ];
                var extKeyUsageVal = [
                    &quot;1.2.643.2.2.34.25&quot;,
                    &quot;1.2.643.2.2.34.26&quot;,
                    &quot;1.2.643.2.2.34.6&quot;,
                    &quot;clientAuth&quot;,
                    &quot;emailProtection&quot;
                ];
                var certificatePolicies = [
                    &quot;1.2.643.100.113.1&quot;, // КС1
                    &quot;1.2.643.100.113.2&quot; // КС2
                ];
                var extensions = {
                    &quot;keyUsage&quot;:            keyUsageVal,
                    &quot;extKeyUsage&quot;:         extKeyUsageVal,
                    &quot;certificatePolicies&quot;: certificatePolicies
                };
                var options = {
                    &quot;subjectSignTool&quot;:     &#039;СКЗИ «Рутокен ЭЦП 2.0»&#039;,
                    &quot;hashAlgorithm&quot;:       plugin.HASH_TYPE_GOST3411_12_256,
                    &quot;customExtensions&quot;:    [
                        {
                            oid: &quot;1.3.6.1.4.1.311.21.7&quot;,
                            value: &quot;MA0GCCqFAwICLgAIAgEB&quot;,
                            criticality: false
                        }
                    ]
                };
                // console.log(devices[0], keyId, subject, extensions, options);
                plugin.createPkcs10(devices[0], keyId, subject, extensions, options)</code></pre></div><p>Заранее спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (mikrob24RUS)]]></author>
			<pubDate>Wed, 21 Jul 2021 05:56:32 +0000</pubDate>
			<guid>https://forum.rutoken.ru/post/15806/#p15806</guid>
		</item>
	</channel>
</rss>
