-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to create the Icinga for Windows certificate file "icingaforwindows.pfx". #724
Comments
It looks like you have a different certutil installed on your system which seems to work different then the default Windows version. Can you please check with this command, which binaries are found? Get-Command certutil; On my machines it will return CommandType Name Version Source
----------- ---- ------- ------
Application certutil.exe 10.0.20... C:\Windows\system32\certutil.exe Maybe I should always enforce the binary at Can you please try on this quick patch on one of those machines:
lib/webserver/ConvertTo-IcingaX509Certificate.psm1
if (-Not (Test-Path $TargetFile) -Or $TempFile -Or $Force) {
Write-Output "$Password
$Password" | certutil -mergepfx "$CertFile" "$TargetFile" | Set-Variable -Name 'CertUtilOutput';
}
if (-Not (Test-Path $TargetFile) -Or $TempFile -Or $Force) {
Write-Output "$Password
$Password" | & 'C:\Windows\system32\certutil.exe' -mergepfx "$CertFile" "$TargetFile" | Set-Variable -Name 'CertUtilOutput';
}
icinga -Shell -RebuildCache;
Install-IcingaForWindowsCertificate; Does this resolve the issue? In case it does, I will provide a patch for 1.12.3. Please try this as well on Windows machines where it is currently working, to ensure we don't break anything. |
All ok so far with this change. |
@LordHepipud using the latest framework 1.12.3 on some windows servers we are seeing the following error message when installing IcingaForWindows using the automated self service script.
Error:
Any idea what the problem may be?
The text was updated successfully, but these errors were encountered: