Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / November 2004

Tip: Looking for answers? Try searching our database.

SN.exe and Public Keys

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brian Reed - 26 Oct 2004 21:11 GMT
I am using SN.exe to generate key pairs and to extract the public key from
the pair so that our developers can do delayed signing without having to give
them the private key.  Here's my concern.  The public key and public key
token displayed from the key pair and the public key only are different.  
Should this be?

Try this:

sn -k privatepair.snk
sn -p privatepair.snk publickey.snk
sn -tp privatepair.snk
sn -tp publickey.snk

Note that the results of the last two lines is distinctly different.  
Shouldn't the extracted public key match the public key from the key pair?  
If I am delayed signing files and using app.confg to reference other
assemblies via an assemblyIdentity, what public key token would I use?

Thanks,

Brian
Mujtaba Syed - 03 Nov 2004 20:52 GMT
A year or so back I wrestled with this same thing plus more-

According to the docs the public and private key are each 1024 bits (128
bytes) in size. But, the size of privatepair.snk is 596 bytes while the size
of publickey.snk is 160 bytes.

> I am using SN.exe to generate key pairs and to extract the public key from
> the pair so that our developers can do delayed signing without having to give
[quoted text clipped - 17 lines]
>
> Brian

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.