【发布时间】:2018-02-06 01:21:16
【问题描述】:
我正在使用厨师超市提供的“windows”食谱,当我使用“windows_certificate”资源时出现以下错误
STDOUT:
STDERR: C:\Users\pratikg\AppData\Local\Temp\chef-script20160712-8616-xwbm5w.ps1 : Exception calling ".ctor" with "3"
argument(s): "Cannot find the requested object.
"
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,chef-script20160712-8616-xwbm5w.ps1
---- End output of "C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -Execu
tionPolicy Bypass -InputFormat None -File "C:/Users/pratikg/AppData/Local/Temp/chef-script20160712-8616-xwbm5w.ps1" ----
Ran "C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypa
ss -InputFormat None -File "C:/Users/pratikg/AppData/Local/Temp/chef-script20160712-8616-xwbm5w.ps1" returned 1
我已将以下代码添加到我的食谱中
windows_certificate "c:/temp/cert.pfx" do
pfx_password "password"
end
以下是版本详情
Cookbook version - 1.44.1
Chef-client version - 12.11.18
Platform Details - Windows 7 64bit & 2012 R2 64bit
Powershell version - 4.0
【问题讨论】:
标签: powershell chef-infra pfx