PC Review


Reply
Thread Tools Rate Thread

Converting Verisign certificate (SPC) to strong named key pair (SN

 
 
=?Utf-8?B?bWRhcnNpZ255?=
Guest
Posts: n/a
 
      25th Jul 2005
Hi,

I would like to be able to use my Verisign certificate to strong name my
..NET assembly. Basically, I am trying to convert my SPC file into a .NET
strong named key pair (snk file).

I have read articles on forums and newsgroups explaining methods to acheive
this but none of them worked. The closest I got from generating a strong
named key pair using my certificate was following these steps:
- use pvkimprt to import my certificate in a store
- save the randomly-generated container name (guid) from the password
window
- export the strong named key pair using: sn.exe –pc <container_name>
mysnkfile.snk

Then I use this SNK file as my assembly key file and I use the following C#
code to get the public key of my assembly at runtime:
Assembly oExecutingAssembly = Assembly.GetExecutingAssembly();
byte[] abPublicKey = oExecutingAssembly.GetName().GetPublicKey();

But the public returned by this code does not match my Verisign certificate
public key.

Is this the way to do that? Is it possible to use a SPC certificate to
strong name Microsoft .NET assemblies?

Thanks,
Math
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VeriSign Certificate =?Utf-8?B?TWFyeSBMLiBaZXR0?= Microsoft Outlook Discussion 1 17th May 2005 06:18 AM
Verisign Certificate =?Utf-8?B?UGV0ZXJI?= Microsoft Access Security 0 31st Mar 2005 12:17 AM
Re: Strong Naming a Non-Strong Named assembly Joyjit Mukherjee Microsoft Dot NET Framework 0 24th Aug 2004 02:17 PM
strong naming an assembly that has non-strong named references? SStory Microsoft VB .NET 2 10th Jun 2004 06:41 PM
Failed to generate a strong name key pair Sergey Microsoft Dot NET Framework 5 17th Apr 2004 06:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:45 AM.