Click here to Skip to main content
15,909,091 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Please help how to assign signed certificate for dll. I have taken below code from google but not sure where to use please guide,

What I have tried:

string exe = asm.Location;
        //System.Security.Cryptography.X509Certificates.X509Certificate executingCert =System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromSignedFile(exe); 
        //Console.WriteLine (executingCert.Issuer);
Posted
Updated 13-Nov-18 22:14pm

1 solution

Hi,

I am not sure about the above code if it will work or no. But in general, whenever you want to sign your assembly (project) in Visual Studio you can either use the certificates that Visual Studio uses to sign your app or sign an Assembly with a Strong Name. For both solutions, I will leave a link where you can get more information and a tutor for how to do.
Manage the certificates that Visual Studio uses to sign your app[^]
How to: Sign an Assembly with a Strong Name | Microsoft Docs[^]
Please do not hesitate to leave a comment to get more help, I can improve this solution until your problem gets solved.

Cheers,
AH
 
Share this answer
 
Comments
Member 13818142 14-Nov-18 4:37am    
Thank you, but i am unable to understand what was there in the link its showing as we need to assign certificate manually, but i am not having the link which was shown i am using vs2010
Aydin Homay 14-Nov-18 7:16am    
How about the first link. I really think that link should solve your problem. Could you please say what it does not?
Member 13818142 15-Nov-18 0:50am    
I dont have App Manifest Designer in my tool dot know how to get it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900