<?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# Information, Code, Tips and News</description>
	<lastBuildDate>Sat, 24 Jul 2010 01:26:51 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tof</title>
		<link>http://www.csharp411.com/determine-if-a-loaded-net-assembly-is-signed/comment-page-1/#comment-3787</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-3787</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'm not sure this is what you'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-page-1/#comment-282</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-282</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 />
"signer name " and the "time stamp"</p>
<p>i wrote this code and it works fine<br />
but<br />
the "cert "  has alot of data<br />
in it but i cant find<br />
"signer name " and the "time stamp"</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 "time stamp" and  "signer name"  </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-page-1/#comment-280</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-280</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'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-page-1/#comment-276</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-276</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-page-1/#comment-275</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-275</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 "typeof( MyType )" mean<br />
could you plz  give me an example<br />
and thank you again <img src='http://www.csharp411.com/wordpress/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-page-1/#comment-267</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-267</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-page-1/#comment-265</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-265</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-page-1/#comment-261</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-261</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 "Project > Properties".<br />
3. Click the "Signing" tab.<br />
4. If the "Sign the assembly" 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-page-1/#comment-257</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-257</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>
