在客户端机器中导入 PFX 文件
我们需要在几台客户端计算机上注册我的公司证书。
我已使用以下代码使用 C# 进行注册:
X509Certificate2 certificate = new X509Certificate2("D:\temp.pfx","password");
X509Store store = new X509Store(StoreName.TrustedPublisher,
StoreLocation.LocalMachine);
store.Open(OpenFlags.ReadWrite);
store.Add(certificate);
store.Close();
它工作正常,但我不想将 pfx 文件发送到客户端计算机上。
我应该从 Web 访问该文件还是调用 Web 服务来访问 pfx 文件?
有人可以帮我解决这个问题吗?
We need to register my company certificate on several client machines.
I have used the following code to register using C#:
X509Certificate2 certificate = new X509Certificate2("D:\temp.pfx","password");
X509Store store = new X509Store(StoreName.TrustedPublisher,
StoreLocation.LocalMachine);
store.Open(OpenFlags.ReadWrite);
store.Add(certificate);
store.Close();
It works correctly, but I don't want to ship the pfx file on the client machines.
Should I access the file from the web or call a web service to access the pfx file?
Can any one please help me on this ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只要您发布您的公钥,您就可以按照您喜欢的方式进行操作。
As long as you're publishing your public key, you can do it in whatever way you like.