PFX/PKCS12 to SNK conversion for mono

后端 未结 3 769
甜味超标
甜味超标 2021-01-05 17:24

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

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-05 18:04

    sn -pis used to extract a public key from a strongname.

    However you need the private key in order to sign an assembly - so this (built-in sn) conversion is not helpful for your goal.

    Sadly a quick look at Microsoft sn options does not document any option to do what you're looking for.

    My suggestion is to write a small tool, re-using Mono sn and Mono.Security.dll source code, to read the PFX (pkcs#12) file and write it back as a SNK file.

提交回复
热议问题