Questions tagged [snk]

In the .NET framework, a Strong Name Key (SNK) is used to sign an assembly with a strong name.

In the .NET framework, a Strong Name Key (SNK) is used to sign an assembly with a strong name.

http://msdn.microsoft.com/en-us/library/xc31ft41%28v=vs.110%29.aspx

38 questions
171
votes
5 answers

What is a .snk for?

What is a .snk file for? I know it stands for Strongly Named Key, but all explanations of what it is and how it works goes over my head. Is there any simple explanation on how a strongly named key is used and how it works?
webdtc
43
votes
3 answers

How to create a snk from pfx / cer?

Microsoft seems to have created a certification jungle, that is hard to understand. Microsoft X.509 certificate (.cer) Personal Information Exchange (.pfx) Assembly Signature Key Attribute (.snk) Would it be advisable to create an snk file…
Houman
  • 64,245
  • 87
  • 278
  • 460
14
votes
2 answers

signing assemblies with a strong name, ok, but what if some 3rd party DLL isn't signed?

I understand the basic idea behind signing assemblies but have a problem when using Telerik or 2rd party DLLs. I have an .exe that uses 2 of my own .DLLs, the DLLs in turn make use of the Enterprise library DLLs and Telerik DLLs. I gave all my…
John
  • 3,591
  • 8
  • 44
  • 72
13
votes
3 answers

Multiple projects need to use 1 SNK file

I'm using Visual Studio 2008 and I have a solution which contains multiple projects. I have 1 snk to sign my assemblies and this lives in a solution folder. I've linked the snk to each of my projects but now when I attempt to sign my project with…
Naeem Sarfraz
  • 7,360
  • 5
  • 37
  • 63
11
votes
8 answers

Build error when signing with snk key

Build error is occurring since using Visual Studio 2015. When building in Visual Studio 2015 this is occurring rarely. When building in TeamCity this occurs very often. [Error in Visual Studio 2015] Error extracting public key from file…
Bart VdA
  • 578
  • 1
  • 5
  • 15
10
votes
4 answers

Started to receive the error: Error signing assembly -- Unknown error (8013141c)

Visual Studio 2013 - Started to receive the error: "Error signing assembly -- Unknown error (8013141c)" when compiling. Few of the projects are signed using a snk file. It used to compile and has been in production for quite some time.
Vin
  • 942
  • 8
  • 13
9
votes
1 answer

Running tSQLt project from sources fails on the due to the Public Token mismatch

I'm trying to do some improvements for tSQLt framework and I'm mostly finish, but can't do that as few tests related to the certificate I wasn't touching are still failing: [exec] |18|[InstallExternalAccessKeyTests].[test creates correct…
Dmitrij Kultasev
  • 5,447
  • 5
  • 44
  • 88
8
votes
2 answers

location of .snk file and management of it

I am currently setting up my .net libraries to be signed with a strongly typed key. I am using .snk file to sign my dll's on a per solution basis. So for each solution, it has its own .snk file. Is this correct practice? For example I have a class…
amateur
  • 43,371
  • 65
  • 192
  • 320
7
votes
1 answer

How to generate strong-naming SNK key file with .net libraries

My product needs to be able to generate .snk files (without having Microsoft SDKs installed on the system). I can generate a working SNK file, but I can not seem to get it to work when specifying a password. Can anyone give me some pointers? This is…
Adam
  • 4,159
  • 4
  • 32
  • 53
7
votes
3 answers

Why exactly does regasm warn me about signing with a strong name?

If I want to make a .NET assembly usable as a COM server I have to add a set of attributes and then use regasm to register it as a COM server. If the assembly is not signed with a strong name regasm when run with /codebase key shows a RA0000 warning…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
7
votes
2 answers

How does signing with a strong name protect against forging a set of assemblies?

Signing with a strong name (keypair stored in a .snk file) is (among other uses) meant to protect against forging assemblies. For example: I ship my assembly signed with a strong name, then some other developer uses my assembly and so his assembly…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
6
votes
3 answers

PFX/PKCS12 to SNK conversion for mono

This is follow up on Mono xbuild error CS1548 - key file has incorrect format Hi, I have an application that is written in C# using VS2008. At present we are porting this app to Mac using Mono. I have tried to extract the key from the pfx…
Paul Williams
  • 161
  • 1
  • 10
6
votes
2 answers

Do I need a new .snk keyfile for each version of a strong named library?

If I strong name a class library with a .snk file, do I need to replace this .snk file with a new if I create a new version of the same library?
Wolf5
  • 16,600
  • 12
  • 59
  • 58
5
votes
3 answers

Any reason to ship .snk file with the project sources?

Every now and then I see a sample project on the network which contains a .snk file used for signing the compilation results with a strong name. AFAIK this is plain wrong - once a .snk file is disclosed anyone can produce an assembly that can be…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
3
votes
1 answer

How to convert a strongname public key (snk) to ?

I have a file testpublic.snk which holds a public key. I have created it with sn -p c:\test.snk c:\testpublic.snk. Now, how can I convert testpublic.snk to a string like…
BennoDual
  • 5,865
  • 15
  • 67
  • 153
1
2 3