<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум Рутокен &mdash; Ошибка при обращении к приватному ключу в приложении IIS]]></title>
	<link rel="self" href="https://forum.rutoken.ru/feed/atom/topic/2007/" />
	<updated>2014-01-14T09:48:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.rutoken.ru/topic/2007/</id>
		<entry>
			<title type="html"><![CDATA[Re: Ошибка при обращении к приватному ключу в приложении IIS]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/6881/#p6881" />
			<content type="html"><![CDATA[<p>Здравствуйте! </p><p>По всей видимости при обращении к ключу идет попытка показать диалог для ввода PIN-кода. Сервисы по умолчанию не взаимодействуют с рабочим столом. Показывается ли диалог в консольном приложении? Можно попробовать выставить сервису на вкладке Log on свойство&nbsp; «Allow service to interact with desktop». Если поможет, то дело в этом.</p>]]></content>
			<author>
				<name><![CDATA[Vladimir Ivanov]]></name>
				<uri>https://forum.rutoken.ru/user/179/</uri>
			</author>
			<updated>2014-01-14T09:48:27Z</updated>
			<id>https://forum.rutoken.ru/post/6881/#p6881</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Ошибка при обращении к приватному ключу в приложении IIS]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/6879/#p6879" />
			<content type="html"><![CDATA[<p>Есть неэкспортируемый ключ на RuToken девайсе. Ключ от CryptoPro. При попытке подписать или расшифровать данные этим ключом в приложении IIS или в приложении, установленном как Windows service кидается System.Security.Cryptography.CryptographicException: The Keyset parameter is invalid. При выполнении того же кода, но в консольном приложении, все проходит отлично. В чем может быть причина?</p><p>System.Security.Cryptography.CryptographicException: The Keyset parameter is invalid.</p><p>&nbsp; &nbsp;at System.Security.Cryptography.Pkcs.EnvelopedCms.DecryptContent(RecipientInfoCollection recipientInfos, X509Certificate2Collection extraStore)<br />&nbsp; &nbsp;at System.Security.Cryptography.Pkcs.EnvelopedCms.Decrypt()</p>]]></content>
			<author>
				<name><![CDATA[Олег Мишенькин]]></name>
				<uri>https://forum.rutoken.ru/user/9285/</uri>
			</author>
			<updated>2014-01-14T08:38:41Z</updated>
			<id>https://forum.rutoken.ru/post/6879/#p6879</id>
		</entry>
</feed>
