Problem strong naming assemblies using X.509 certificate

Problem strong naming assemblies using X.509 certificate

Post by EMonac » Wed, 17 Nov 2004 07:05:24


All,

I am attempting to sign an assembly using our company's X.509 certificate.
The only signing attribute options are AssemblyKeyFile and AssemblyKeyName.
As I have had no luck figuring out how to create the .snk file from .pfx,
cer & pvk, etc. I assume my only real option is to use AssemblyKeyName.
Using KeyPal, pvkimptr, etc. I have determine (and set) container names for
the signature/certificate. Unfortunately, during compile I always get a
Cryptographic failure stating "The key container name "name here" does not
exist!

I assume the proper name will be listed by KeyPal, such as:

[11] {7978CC16-5414-4868-B936-901DBC90DD06}
Signature 1024
CertS: CN=My Test Company Certificate

Where AssemblyKeyName("{7978CC16-5414-4868-B936-901DBC90DD06}")

I've tried setting the container to "Company Name" and using
AssemblyKeyName("Company Name") to no avail.


Can this be done? What am I doing wrong?

Regards,
Erin.
 
 
 

Problem strong naming assemblies using X.509 certificate

Post by EMonac » Wed, 17 Nov 2004 07:31:49

All,

Figured it out- container containing the cert was local to user not
machine- by executing SN with -m n switch it causes "MSCORSN" to use current
user rather than machine. Now AssemblyKeyName("container name") works as
expected.

Regards,
Erin.

 
 
 

Problem strong naming assemblies using X.509 certificate

Post by EMonac » Wed, 17 Nov 2004 07:31:49

All,

Figured it out- container containing the cert was local to user not
machine- by executing SN with -m n switch it causes "MSCORSN" to use current
user rather than machine. Now AssemblyKeyName("container name") works as
expected.

Regards,
Erin.