<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Asymmetric Encryption of Text using x.509 Certificates in PowerShell</title>
	<atom:link href="http://jeffmurr.com/blog/?feed=rss2&#038;p=228" rel="self" type="application/rss+xml" />
	<link>http://jeffmurr.com/blog/?p=228</link>
	<description>Database, Software, and System Engineering</description>
	<lastBuildDate>Fri, 26 Apr 2019 03:09:53 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.30</generator>
	<item>
		<title>By: Dan</title>
		<link>http://jeffmurr.com/blog/?p=228#comment-3133</link>
		<dc:creator><![CDATA[Dan]]></dc:creator>
		<pubDate>Fri, 06 Mar 2015 20:48:32 +0000</pubDate>
		<guid isPermaLink="false">http://jeffmurr.com/blog/?p=228#comment-3133</guid>
		<description><![CDATA[Hi Jeff,

Great script and functions!
Unfortunately your decrypt Function doesn&#039;t work with the certificate you were creating in the step before. You must add &quot;-sky Exchange&quot; to your makecert.exe command to ensure this certificate can be used for key exchange.
Instead you will receive the following error: &quot;Exception calling &quot;Decrypt&quot; with &quot;2&quot; argument(s): &quot;Bad Key&quot;.

Thanks to Joe Clancy from stackoverflow for this hint: http://stackoverflow.com/questions/2037072/bad-key-exception-for-certificates-with-exportable-private-key

Hopefully it will help some people. I struggled with this problem a few hours ;-)


Regards,
Dan]]></description>
		<content:encoded><![CDATA[<p>Hi Jeff,</p>
<p>Great script and functions!<br />
Unfortunately your decrypt Function doesn&#8217;t work with the certificate you were creating in the step before. You must add &#8220;-sky Exchange&#8221; to your makecert.exe command to ensure this certificate can be used for key exchange.<br />
Instead you will receive the following error: &#8220;Exception calling &#8220;Decrypt&#8221; with &#8220;2&#8243; argument(s): &#8220;Bad Key&#8221;.</p>
<p>Thanks to Joe Clancy from stackoverflow for this hint: <a href="http://stackoverflow.com/questions/2037072/bad-key-exception-for-certificates-with-exportable-private-key" rel="nofollow">http://stackoverflow.com/questions/2037072/bad-key-exception-for-certificates-with-exportable-private-key</a></p>
<p>Hopefully it will help some people. I struggled with this problem a few hours <img src="http://jeffmurr.com/blog/wp-includes/images/smilies/icon_wink.gif" alt=";-)" class="wp-smiley" /> </p>
<p>Regards,<br />
Dan</p>
]]></content:encoded>
	</item>
</channel>
</rss>
