<?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/3396" />
	<updated>2021-07-27T15:19:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.rutoken.ru/topic/3396/</id>
		<entry>
			<title type="html"><![CDATA[Re: Как подписать хэш файла с помощью Рутокен Плагин]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/15833/#p15833" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Павел Анфимов пишет:</cite><blockquote><p><strong>aschurf</strong>, подписываемый хеш надо передавать как hex-строку с разделителем в виде двоеточия.<br />Для </p><div class="codebox"><pre><code>xwKmX/fgfnw00eDB1xrQVGn+PdTPIcgLOAjzqadVTLo=</code></pre></div><p> это будет:<br /></p><div class="codebox"><pre><code>c7:02:a6:5f:f7:e0:7e:7c:34:d1:e0:c1:d7:1a:d0:54:69:fe:3d:d4:cf:21:c8:0b:38:08:f3:a9:a7:55:4c:ba</code></pre></div></blockquote></div><br /><p>Спасибо огромное, все работает</p>]]></content>
			<author>
				<name><![CDATA[aschurf]]></name>
				<uri>https://forum.rutoken.ru/user/11817/</uri>
			</author>
			<updated>2021-07-27T15:19:49Z</updated>
			<id>https://forum.rutoken.ru/post/15833/#p15833</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как подписать хэш файла с помощью Рутокен Плагин]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/15832/#p15832" />
			<content type="html"><![CDATA[<p><strong>aschurf</strong>, подписываемый хеш надо передавать как hex-строку с разделителем в виде двоеточия.<br />Для </p><div class="codebox"><pre><code>xwKmX/fgfnw00eDB1xrQVGn+PdTPIcgLOAjzqadVTLo=</code></pre></div><p> это будет:<br /></p><div class="codebox"><pre><code>c7:02:a6:5f:f7:e0:7e:7c:34:d1:e0:c1:d7:1a:d0:54:69:fe:3d:d4:cf:21:c8:0b:38:08:f3:a9:a7:55:4c:ba</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Павел Анфимов]]></name>
				<uri>https://forum.rutoken.ru/user/7338/</uri>
			</author>
			<updated>2021-07-27T14:52:35Z</updated>
			<id>https://forum.rutoken.ru/post/15832/#p15832</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как подписать хэш файла с помощью Рутокен Плагин]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/15831/#p15831" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Павел Анфимов пишет:</cite><blockquote><p><strong>aschurf</strong>, добрый день!</p><p>В Рутокен Плагине есть функция rawSign. Используйте ее с опцией computeHash:false.</p></blockquote></div><p>Пытался использовать и эту функцию, но получаю &quot;Неправильные параметры&quot;</p><p>useHardwareHash: false,<br />computeHash: false</p><p>Пытаюсь воспользоваться демо окружением на <a href="https://aktivco.github.io/rutoken-plugin-demo/">https://aktivco.github.io/rutoken-plugin-demo/</a>, раздел &quot;Подпись на ключе&quot; - rawSign, аналогичная ошибка.</p><p>Использую Rutoken ECP</p><p>Уже не понимаю куда смотреть и как решить проблему</p>]]></content>
			<author>
				<name><![CDATA[aschurf]]></name>
				<uri>https://forum.rutoken.ru/user/11817/</uri>
			</author>
			<updated>2021-07-27T14:21:53Z</updated>
			<id>https://forum.rutoken.ru/post/15831/#p15831</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как подписать хэш файла с помощью Рутокен Плагин]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/15830/#p15830" />
			<content type="html"><![CDATA[<p><strong>aschurf</strong>, добрый день!</p><p>В Рутокен Плагине есть функция rawSign. Используйте ее с опцией computeHash:false.</p>]]></content>
			<author>
				<name><![CDATA[Павел Анфимов]]></name>
				<uri>https://forum.rutoken.ru/user/7338/</uri>
			</author>
			<updated>2021-07-27T13:54:26Z</updated>
			<id>https://forum.rutoken.ru/post/15830/#p15830</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Как подписать хэш файла с помощью Рутокен Плагин]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/15829/#p15829" />
			<content type="html"><![CDATA[<p>Всем привет!</p><p>Возникла задача подписывать документы в СБИС через Рутокен</p><p>Имеется хэш файла, &quot;xwKmX/fgfnw00eDB1xrQVGn+PdTPIcgLOAjzqadVTLo=&quot;, как его правильно подписать через плагин?</p><p>Пытаюсь сделать это через вызов sign, подпись формируется, но не проходит валидацию с ошибкой &quot;Хэш не совпадает с хэшем сообщения из подписи&quot;</p>]]></content>
			<author>
				<name><![CDATA[aschurf]]></name>
				<uri>https://forum.rutoken.ru/user/11817/</uri>
			</author>
			<updated>2021-07-27T13:48:51Z</updated>
			<id>https://forum.rutoken.ru/post/15829/#p15829</id>
		</entry>
</feed>
