Re: Convert .spc and .pvk files into snk file
From: Michel Gallant (neutron_at_istar.ca)
Date: 05/05/04
- Next message: Shawn Farkas: "RE: Loading managed code from unmanaged application residing on a share"
- Previous message: Hernan de Lahitte: "Re: Code Access Security Best Practices"
- In reply to: James Mills: "Convert .spc and .pvk files into snk file"
- Next in thread: James Mills: "Re: Convert .spc and .pvk files into snk file"
- Reply: James Mills: "Re: Convert .spc and .pvk files into snk file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 5 May 2004 15:58:41 -0400
By default sn.exe only looks for Machine keycontainers. Check this by executing:
sn -m
You can force sn.exe to look for CU keys (probably what you have generated) rather
than Machine keys by executing:
sn -m n
You might also want to reset the default Strong Name CSP by executing:
sn - c
- Mitch Gallant
MVP Security
"James Mills" <andre@ipmouse.com> wrote in message
news:466f427b.0405051049.2a444b13@posting.google.com...
> Hello,
>
> I'm trying to use .spc and pvk filse to sign my assemblies. I don't
> want to use codesign utility, instead I'd like to import signing cert
> into container with specific name and specify this conteiner in
> AssemblyKeyName attribute.
> So far, the alghoritm I developed after searching in Google looks
> like one below:
>
> 1) Use pvkimprt.exe to import .spc file in storage with some
> random-named container - done. Generated container name
> 9856E6C5-6819-4c50-94BB-47916DC5BC62
>
> 2) Now I should be able to use command sn.exe -pc
> 9856E6C5-6819-4c50-94BB-47916DC5BC62 mysnkfile.snk to create snk file.
> And this is not working.
> I'm getting error "Keyset dose not exist". Even I know that container
> is exists, because I can call signcode.exe -spc mykey.spc -k
> 9856E6C5-6819-4c50-94BB-47916DC5BC62 myassembly.dll and it works.
>
> What I'm doing wrong? Or may be there is another way to do it that
> I'm not aware of?
>
> Thank you,
> JM
- Next message: Shawn Farkas: "RE: Loading managed code from unmanaged application residing on a share"
- Previous message: Hernan de Lahitte: "Re: Code Access Security Best Practices"
- In reply to: James Mills: "Convert .spc and .pvk files into snk file"
- Next in thread: James Mills: "Re: Convert .spc and .pvk files into snk file"
- Reply: James Mills: "Re: Convert .spc and .pvk files into snk file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|