如何将签名证书分配给DLL [英] How to assign a signed certificate to DLL

查看:162
本文介绍了如何将签名证书分配给DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



请帮助如何为dll分配签名证书。我从谷歌采取以下代码,但不知道在哪里使用请指导,



我尝试过:



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);

推荐答案





我不确定上面的代码是否可行。但通常,只要您想在Visual Studio中对程序集(项目)进行签名,就可以使用Visual Studio用于签署应用程序的证书或使用强名称签署程序集。对于这两种解决方案,我将留下一个链接,您可以获得更多信息和导师,了解如何操作。

管理Visual Studio用于签署应用程序的证书 [ ^ ]

如何:签署具有强名称的程序集Microsoft Docs [ ^ ]

请不要犹豫,发表评论以获得更多帮助,我可以改进此解决方案直到您的问题得到解决解决了。​​



干杯,

AH
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


这篇关于如何将签名证书分配给DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆