限制从 C# 代码访问证书
用例:
我有一个托管平台(服务器),其中托管多个 ASP.Net 应用程序。我不想让应用程序以编程方式访问服务器上的证书。只有平台所有者开发的组件/库才应该能够访问这些证书。
有什么方法可以限制应用程序仅使用平台组件进行任何与证书相关的操作。
仅供参考,所有证书都作为文件存储在固定文件夹中。
我可以实现某种代码访问权限,该权限可以让平台库访问这些证书并拒绝其他库/组件/应用程序访问证书吗?
The use case:
I have a hosting platform (server) where multiple ASP.Net applications are hosted. I do not want to have application to have programmatic access to the certificates on the Server. Only the Components/libraries that are developed by the platform owners should be able to access those certificates.
Is there any way in which i can restrict application from using only platform components for doing any certificates related manupilation.
FYI all the certificates are stored as files in a fixed folder.
Can i implement some kind of Code Access permissions which can give platform libraries access to those certificate and deny other libraries/components/Application from accessing certificates?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论