Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a PFX file in C# solution

I accidentally deleted the PFX file. Now I would like to know how to create the PFX file again.

like image 486
user698065 Avatar asked Oct 24 '25 18:10

user698065


1 Answers

A PFX file is one that contains an encrypted private key. It is generally used for code-signing, which enables trusted execution of an assembly.

If you deleted it (and it's not still in the Recycle Bin or available from your source control server), there's no way to recover it or the key that it contained.

You will have to create a new one, which will change the public key of your assembly. Do so in your project's Properties, under the "Signing" tab.

like image 59
Cody Gray Avatar answered Oct 27 '25 07:10

Cody Gray