我'嘗試證書添加到腳本中使用certmgr
CurrentUser
位置:certmgr.exe命令行工具的位置
certmgr.exe -add -r LocalMachine -s My -c -n %SERVER_NAME% -r CurrentUser -s TrustedPeople
但certmgr.exe
命令實用程序不可在Win 7,VS2008 ENV。
請告訴我在哪裏以及如何獲得。
我'嘗試證書添加到腳本中使用certmgr
CurrentUser
位置:certmgr.exe命令行工具的位置
certmgr.exe -add -r LocalMachine -s My -c -n %SERVER_NAME% -r CurrentUser -s TrustedPeople
但certmgr.exe
命令實用程序不可在Win 7,VS2008 ENV。
請告訴我在哪裏以及如何獲得。
您可以通過打開visualstudio命令提示符並鍵入certmgr或僅在Windows資源管理器中搜索certmgr.exe來了解其位置並在腳本中使用它,以找到certmgr.exe。
的位置通常是如下:
c:\Program Files (x86)\MicrosoftSDKs\Windows\v7.0A\bin
以上位置是當您在安裝過程中使用興田默認位置安裝VS.NET 2010。
你說的是certmgr.exe和certmgr.msc,它們是不同的東西。但是,有關.exe:
此工具自動與Visual Studio和Windows SDK一起安裝。
所以重新安裝Visual Studio或下載Windows SDK。
感謝您的建議。我下載了Windows SDK for win 7並且能夠創建證書 –
rundll32.exe cryptext.dll,CryptExtAddCER "path_to_*.crt_file"
應該做的伎倆,然後在幾個彈出窗口旁邊點擊,很難讓沉默,但你可能有一些運氣把.crt放在已經存在的位置,並且從命令行合併一個.reg,可能是沉默的。
下面是如果您沒有安裝Visual Studio的步驟。應該適用於Windows 7+(在Windows 10上測試)。
C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86
複製certmgr.exe
。然後,您可以在任何計算機上使用certmgr.exe
,而無需安裝SDK。不知道有關再分配許可證。
還有一個x64版本,但據我可以告訴x86版本也適用於x64位機器。
缺少空間:「C:\ Program Files文件(x86)\ Microsoft SDKs \ Windows \ v7.0A \ Bin」 – nergeia
感謝您的支持,我在回答中更新了它 – Rajesh