473,729 Members | 2,309 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

strong name util sn and partial signing

Hey,

So I get the idea of signing the assembly as to prevent any tempering with
it (besides the added ability to install it into the GAC). I did a lit
exercise myself there I signed the app, compiled, disassembled it, changed
some IL, assembled it and tried to load it but got the loader exception. Now
partial signing allows to keep the private key in the seperate location from
public. But how can I load the assembly which has been just partially
signed? If I am a dev and I work on some assembly, I want to test it, but I
cannot because I cannot loaded? What do I do know? Everytime I need to test
I have to resign it?

thanks for any advice or suggestion or explanation,

Laimis
Nov 16 '05 #1
2 1956
The strong name utility is a thing of many wonders

sn -Vr <assembly file name>

this turns on verification skipping which means the assembly loader will not attempt to verify the strong name. ALl it does in fact is set up a registry entry in a key which has an ACL only alloing admin write access.

Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog

nntp://news.microsoft. com/microsoft.publi c.dotnet.langua ges.csharp/<OI************ **@TK2MSFTNGP15 .phx.gbl>

Hey,

So I get the idea of signing the assembly as to prevent any tempering with
it (besides the added ability to install it into the GAC). I did a lit
exercise myself there I signed the app, compiled, disassembled it, changed
some IL, assembled it and tried to load it but got the loader exception. Now
partial signing allows to keep the private key in the seperate location from
public. But how can I load the assembly which has been just partially
signed? If I am a dev and I work on some assembly, I want to test it, but I
cannot because I cannot loaded? What do I do know? Everytime I need to test
I have to resign it?

thanks for any advice or suggestion or explanation,

Laimis

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 28/09/2004

[microsoft.publi c.dotnet.langua ges.csharp]
Nov 16 '05 #2
Works like a charm!
"Richard Blewett [DevelopMentor]" <ri******@devel op.com> wrote in message
news:el******** ******@tk2msftn gp13.phx.gbl...
The strong name utility is a thing of many wonders

sn -Vr <assembly file name>

this turns on verification skipping which means the assembly loader will not attempt to verify the strong name. ALl it does in fact is set up a
registry entry in a key which has an ACL only alloing admin write access.
Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog

nntp://news.microsoft. com/microsoft.publi c.dotnet.langua ges.csharp/<OI************ **@TK2MSFTNGP15 .phx.gbl>
Hey,

So I get the idea of signing the assembly as to prevent any tempering with it (besides the added ability to install it into the GAC). I did a lit
exercise myself there I signed the app, compiled, disassembled it, changed some IL, assembled it and tried to load it but got the loader exception. Now partial signing allows to keep the private key in the seperate location from public. But how can I load the assembly which has been just partially
signed? If I am a dev and I work on some assembly, I want to test it, but I cannot because I cannot loaded? What do I do know? Everytime I need to test I have to resign it?

thanks for any advice or suggestion or explanation,

Laimis

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 28/09/2004

[microsoft.publi c.dotnet.langua ges.csharp]

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2596
by: Jason Garland \(Secure Access Pty Ltd\) | last post by:
Hi I am trying to work out how to either create a strong name wrapper for AxInterop.SHDocVw.dll I have researched the following : - 'Wrapper Assembly Key' but this is apparently for c# projects only - i tried tlbimp.exe but i get
4
1861
by: Reinhold Schalk | last post by:
Hello, somewhere i've read that using strong names does assure two things: 1. Assure that the content of the assembly is not modified (that's ok in my opinion) 2. Assure that the assembly is really from the "fabricator" (?) If these two point are correct (i'm not sure), i have a problem with point 2. To assure the authentity of the fabricator, the public key (which is a part of the manifest) has to be checked against a certificate.
2
2895
by: Mário Sobral | last post by:
Hi, I created an assembly (let's call it assembly (B)) that returns a localized resource for a given key (similar to System.Globalization.ResourceManager). I checks if the caller assembly (let's call it assembly (A)) has a satellite assembly (let's call it assembly (sA)) with localized resources. If it exists, it gets the resource with the given key and returns it, otherwise it reads information from a support database and dinamically...
10
1524
by: DBC User | last post by:
Hi All, Someone shed some light in to this strong name signing issue I have. My assembly uses a 3rd party controls so I end up distributing their dlls along with my assembly. I put this app in the network and to make app run from network I need to sign with strong name. But all the document I read, it says, if you have an assembly that is not strong name signed I will not able to sign my assembly. How can I sign my assembly without...
8
2694
by: per9000 | last post by:
Dear readers, I have some problems with strong keys. What I want to do is basically this. A - create an application (f.x. strongHello.dll) with a strong key. B - import the functions of this dll into a console application (f.x StrongConsoleApp.exe) and run it if I have somehow specified the public part of the strong key and not otherwise.
8
7605
by: Wacom | last post by:
Hi all! I'm doing some test of obfuscation of assembly marked with the strong name (Fw 2.0). Someone can tell me how does this work? I mean: if I have an exe and a couple of dll marked w/strong name and I obfuscate the dll when I run the exe it crashes because cannot load the
3
4909
by: Michael Voss | last post by:
Hello! I have to sign my assembly (WinForms C# 1.1) with a string name. Unfortulately, I'm forced to reference another assembly (no COMInterop Wrapper) not being signed with a strong name. This results in an compiler error preventing my assembly from being build. I cannot influence anything on the creation of the referenced assembly; all I have is a managed dll. Is there any chance to sign my assembly; if so, how ?
1
2843
by: Tom | last post by:
My unsigned DLL works in my project that references it as long as I set Copy Local = true. Now I have signed the DLL with the sn.exe generated keys but have not yet moved the DLL into the GAC. Can I use a strong named DLL outside the GAC with Copy Local = false by providing a reference to the public key? If yes to above, please tell me how to reference the public key within
6
5683
by: raylopez99 | last post by:
Anybody use Strong Name Signing? I think this is used by default for Resource files, which is one reason perhaps I can't get my resource files to work (somehow the public key is messed up, perhaps since I've installed so many versions of Visual Studio) RL http://msdn.microsoft.com/en-us/library/h4fa028b.aspx Deployment in Visual Studio
0
8917
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8761
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8148
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2680
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2163
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.