如何从asp net web应用程序运行证书(pfx文件)? [英] how to run the certificate (pfx file) from asp net web application?

查看:96
本文介绍了如何从asp net web应用程序运行证书(pfx文件)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须验证pfx文件并从网络基础应用程序获取证书详细信息

但是在IIS中托管页面后它无法正常工作,它只在单机上工作。



- 然后我为获取细节创建了exe但仍然无法正常工作,



(exe将响应保存在一个表格。

我们想要在网络应用程序中获取响应。

它正在通过Code但After Hosting后无法正常工作。)





我通过创建批处理文件来获取数据。



喜欢:







System.Diagnostics.Process proc = new System.Diagnostics.Process();

proc.StartInfo.FileName =c:/New.bat; //System.Configuration.ConfigurationManager.AppSettings [BATCH_FULLBACKUP]。ToString()。Trim();

proc.StartInfo.Arguments = String.Format({0} {1} {2 },askdfsdf,panno,Server.MapPath(〜/ NEWDEV)+\\ConsoleApplication4.exe);

//设置其余的进程设置字符串。格式({0} {1} {2} {3} {4} {5} {6},consolepath,Pc,数据库,用户名,密码,F,bacPath);

proc.Start();

proc.WaitForExit();

proc.Close();



请给我任何关于如何从exe到web应用程序获取数据的建议或想法。

任何人都有想法请告诉我。



谢谢,



问候,

atul。

解决方案

I have to verify the pfx file and get certificate details from the web base application
but its not working after hosting the page in IIS, Its only work on single machine.

-Then I create exe for the fetching the details but still its not working,

(exe saves the response in one table.
And we want to fetch the response in the web Application.
It is working through Code But After Hosting this is not working.)


I am fetching the data through creating the batch files.

like :



System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = "c:/New.bat"; //System.Configuration.ConfigurationManager.AppSettings["BATCH_FULLBACKUP"].ToString().Trim();
proc.StartInfo.Arguments = String.Format("{0} {1} {2}","askdfsdf", panno, Server.MapPath("~/NEWDEV") + "\\ConsoleApplication4.exe");
//set the rest of the process settings String.Format("{0} {1} {2} {3} {4} {5} {6}",consolepath,Pc,database,UserName,Password,"F",bacPath);
proc.Start();
proc.WaitForExit();
proc.Close();

Please give me any suggestion or Idea for how to get the data from exe to web application.
can any one have idea please tell me.

thanks,

regards,
atul.

解决方案

这篇关于如何从asp net web应用程序运行证书(pfx文件)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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