Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to digitally sign my WPF application

I have to digitally sign my WPF application created in visual studio 2012. goodday.com provide the ".spc" file for this.But my visual studio requires pfx file format.How can I obtain certificate in PFX format?

like image 210
Roshil K Avatar asked Jul 16 '13 06:07

Roshil K


People also ask

How do I sign a .NET application?

You sign an application or component by using the Signing tab of the project properties window (right-click the project node in Solution Explorer and select Properties). Select the Signing tab, then select the Sign the assembly check box. Specify a key file.

How do I sign a UWP application with a digital certificate?

These steps work: Right Click and "Publish" my UWP app from Solution Explorer. Choose not to sign the package at the time of publishing. Sign the package via command line with SignTool.exe, using the proper Thumbprint (SHA) for my CA-Issued certificate, it works!

Is WPF still in demand?

None of Microsoft's GUI frameworks ever really die. WPF has top-notch performance, with a high level of customization, and if you aim for Windows, both WPF is critical. Caliburn and ReactiveUI prove that WPF still has a rich ecosystem around it, and it is here to stay.


2 Answers

Got a simple option.Install your spc file.Go to Internet explorer=>tools=>content=> certificates.Then select your certificate and click export option.you can generate Pfx file

like image 63
Roshil K Avatar answered Oct 06 '22 02:10

Roshil K


In Visual Studio 2019, Your are able to do the following:

1-Create a .NET Standard Class Library in Visual Studio.

2-Right-click on the project and go to properties

3-Click on the “Signing” tab

4-Check the “Sign the assembly” checkbox

5-Use the drop-down list to select an existing SNK, or create a new one. The file type is .pfs

6-If you create a new .pfs, it is critical to creat a strong password. Use a trusted password manager to generate a long password and store it.

For More info: https://christianfindlay.com/2020/01/24/net-how-to-sign-an-assembly-in-visual-studio-2019/

like image 35
Mohamad Mahmoud Avatar answered Oct 06 '22 02:10

Mohamad Mahmoud