开发者

Import PFX file in Client machine

开发者 https://www.devze.com 2023-02-19 20:32 出处:网络
We need to register my company certificate on several client machines. I have used the following code to register using C#:

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 w开发者_运维百科ant 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 ?


Shall i access the file from the web/ call web service to access the pfx file.

As long as you're publishing your public key, you can do it in whatever way you like.

0

精彩评论

暂无评论...
验证码 换一张
取 消