<?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: Determine if a Loaded .NET Assembly is Signed</title>
	<atom:link href="http://www.csharp411.com/determine-if-a-loaded-net-assembly-is-signed/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csharp411.com/determine-if-a-loaded-net-assembly-is-signed/</link>
	<description>C# Development</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:14:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Tof</title>
		<link>http://www.csharp411.com/determine-if-a-loaded-net-assembly-is-signed/#comment-191</link>
		<dc:creator>Tof</dc:creator>
		<pubDate>Tue, 25 Nov 2008 13:33:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/determine-if-a-loaded-net-assembly-is-signed/#comment-191</guid>
		<description>Hi,
I am stepping in a bit late, but the signer name can be found in the Issuer property of the X509 certificate.
And the certificate has a ValidFrom and ValidTo properties. I&#039;m not sure this is what you&#039;re looking for as a timestamp.
Anyway, you can also retrieve an Assembly object from a file (wihtout using a type) with the Assembly.LoadFile() method.
Regards</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am stepping in a bit late, but the signer name can be found in the Issuer property of the X509 certificate.<br />
And the certificate has a ValidFrom and ValidTo properties. I&#8217;m not sure this is what you&#8217;re looking for as a timestamp.<br />
Anyway, you can also retrieve an Assembly object from a file (wihtout using a type) with the Assembly.LoadFile() method.<br />
Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MAEN</title>
		<link>http://www.csharp411.com/determine-if-a-loaded-net-assembly-is-signed/#comment-190</link>
		<dc:creator>MAEN</dc:creator>
		<pubDate>Thu, 17 Apr 2008 14:20:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/determine-if-a-loaded-net-assembly-is-signed/#comment-190</guid>
		<description>but the its not my dll its ididnt write the class 
i have a DLL on my machine 
 C:myDLL.dll
and i want to know if its signd 
and if it was signed i want to know the 
&quot;signer name &quot; and the &quot;time stamp&quot;

i wrote this code and it works fine 
but 
the &quot;cert &quot;  has alot of data 
in it but i cant find  
&quot;signer name &quot; and the &quot;time stamp&quot;

//====================================

  public bool signed(string filename)
        {
            X509Certificate cert = null;

            try
            {
                cert = X509Certificate.CreateFromSignedFile(filename);
            }
            catch (CryptographicException e)
            {
                return false;
            }
            return true;

        }
//========================

 sorry man for all these questions but i cant find any thing about &quot;time stamp&quot; and  &quot;signer name&quot;  

and thanx a lot</description>
		<content:encoded><![CDATA[<p>but the its not my dll its ididnt write the class<br />
i have a DLL on my machine<br />
 C:myDLL.dll<br />
and i want to know if its signd<br />
and if it was signed i want to know the<br />
&#8220;signer name &#8221; and the &#8220;time stamp&#8221;</p>
<p>i wrote this code and it works fine<br />
but<br />
the &#8220;cert &#8221;  has alot of data<br />
in it but i cant find<br />
&#8220;signer name &#8221; and the &#8220;time stamp&#8221;</p>
<p>//====================================</p>
<p>  public bool signed(string filename)<br />
        {<br />
            X509Certificate cert = null;</p>
<p>            try<br />
            {<br />
                cert = X509Certificate.CreateFromSignedFile(filename);<br />
            }<br />
            catch (CryptographicException e)<br />
            {<br />
                return false;<br />
            }<br />
            return true;</p>
<p>        }<br />
//========================</p>
<p> sorry man for all these questions but i cant find any thing about &#8220;time stamp&#8221; and  &#8220;signer name&#8221;  </p>
<p>and thanx a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: timm</title>
		<link>http://www.csharp411.com/determine-if-a-loaded-net-assembly-is-signed/#comment-189</link>
		<dc:creator>timm</dc:creator>
		<pubDate>Thu, 17 Apr 2008 12:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/determine-if-a-loaded-net-assembly-is-signed/#comment-189</guid>
		<description>MyType is any type that&#039;s defined in the assembly you are trying to check for digital signature.

So if your assembly has defined a Person class:

public class Person { ... }

Then using the example in the article, you would access the assembly by:

Assembly asm = Assembly.GetAssembly( typeof( Person ) );</description>
		<content:encoded><![CDATA[<p>MyType is any type that&#8217;s defined in the assembly you are trying to check for digital signature.</p>
<p>So if your assembly has defined a Person class:</p>
<p>public class Person { &#8230; }</p>
<p>Then using the example in the article, you would access the assembly by:</p>
<p>Assembly asm = Assembly.GetAssembly( typeof( Person ) );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maen</title>
		<link>http://www.csharp411.com/determine-if-a-loaded-net-assembly-is-signed/#comment-188</link>
		<dc:creator>maen</dc:creator>
		<pubDate>Thu, 17 Apr 2008 06:38:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/determine-if-a-loaded-net-assembly-is-signed/#comment-188</guid>
		<description>i want to get the path for the dll and then check if it has digital signature then  get the signer name and the time stamp value,

bool sigend( string  dll_path)
{

}</description>
		<content:encoded><![CDATA[<p>i want to get the path for the dll and then check if it has digital signature then  get the signer name and the time stamp value,</p>
<p>bool sigend( string  dll_path)<br />
{</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maen</title>
		<link>http://www.csharp411.com/determine-if-a-loaded-net-assembly-is-signed/#comment-187</link>
		<dc:creator>maen</dc:creator>
		<pubDate>Thu, 17 Apr 2008 06:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/determine-if-a-loaded-net-assembly-is-signed/#comment-187</guid>
		<description>i dont know what does &quot;typeof( MyType )&quot; mean 
could you plz  give me an example 
and thank you again :)</description>
		<content:encoded><![CDATA[<p>i dont know what does &#8220;typeof( MyType )&#8221; mean<br />
could you plz  give me an example<br />
and thank you again <img src='http://www.csharp411.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: timm</title>
		<link>http://www.csharp411.com/determine-if-a-loaded-net-assembly-is-signed/#comment-186</link>
		<dc:creator>timm</dc:creator>
		<pubDate>Wed, 16 Apr 2008 13:12:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/determine-if-a-loaded-net-assembly-is-signed/#comment-186</guid>
		<description>The C# code to determine if an assembly has a digital signature is in the article above.</description>
		<content:encoded><![CDATA[<p>The C# code to determine if an assembly has a digital signature is in the article above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MAEN</title>
		<link>http://www.csharp411.com/determine-if-a-loaded-net-assembly-is-signed/#comment-185</link>
		<dc:creator>MAEN</dc:creator>
		<pubDate>Wed, 16 Apr 2008 05:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/determine-if-a-loaded-net-assembly-is-signed/#comment-185</guid>
		<description>thank you man sorry i didnot clarify my question i want to know how to do that programmatically 
(ie get dll path and know if it has digital signature tab , rightclick--&gt; properties--&gt;digital signature)</description>
		<content:encoded><![CDATA[<p>thank you man sorry i didnot clarify my question i want to know how to do that programmatically<br />
(ie get dll path and know if it has digital signature tab , rightclick&#8211;&gt; properties&#8211;&gt;digital signature)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: timm</title>
		<link>http://www.csharp411.com/determine-if-a-loaded-net-assembly-is-signed/#comment-184</link>
		<dc:creator>timm</dc:creator>
		<pubDate>Tue, 15 Apr 2008 13:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/determine-if-a-loaded-net-assembly-is-signed/#comment-184</guid>
		<description>In Visual Studio:
1. Select the project.
2. Click menu item &quot;Project &gt; Properties&quot;.
3. Click the &quot;Signing&quot; tab.
4. If the &quot;Sign the assembly&quot; checkbox is checked, then the assembly has a digital signature.</description>
		<content:encoded><![CDATA[<p>In Visual Studio:<br />
1. Select the project.<br />
2. Click menu item &#8220;Project > Properties&#8221;.<br />
3. Click the &#8220;Signing&#8221; tab.<br />
4. If the &#8220;Sign the assembly&#8221; checkbox is checked, then the assembly has a digital signature.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maen</title>
		<link>http://www.csharp411.com/determine-if-a-loaded-net-assembly-is-signed/#comment-183</link>
		<dc:creator>maen</dc:creator>
		<pubDate>Tue, 15 Apr 2008 07:28:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/determine-if-a-loaded-net-assembly-is-signed/#comment-183</guid>
		<description>how can i know if  an assembly has a digital signature 
tab in the properties   i tried to use FileVersionInfo,</description>
		<content:encoded><![CDATA[<p>how can i know if  an assembly has a digital signature<br />
tab in the properties   i tried to use FileVersionInfo,</p>
]]></content:encoded>
	</item>
</channel>
</rss>

