我正在尝试使用Windows-Service从外部设备获取证书。应该如何处理当前用户的限制?
我有一个.exe文件,从额外的设备(令牌)获取证书,并且它工作正常。但是当它使用WCF从我的Windows服务调用时,它不会向我显示所有证书。它是否对用户或应用进行了限制?
static void LaunchCommandLineApp() { var path = AppDomain.CurrentDomain.BaseDirectory + @"GetCertificate.exe"; log.Info("LaunchCommandLineApp basePath is : " + AppDomain.CurrentDomain.BaseDirectory); log.Info("LaunchCommandLineApp path is : " + path); ApplicationLoader.PROCESS_INFORMATION prcInf = new ApplicationLoader.PROCESS_INFORMATION(); ApplicationLoader.StartProcessAndBypassUAC(path + " -Verb runAs", out prcInf); log.Info("After StartProcessAndBypassUAC"); }
开心每一天1111
相关分类