mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-23 16:19:37 -05:00
If you tried this
Use-Icinga; Get-IcingaSSLCertForSocket -CertFile "C:/my/cert.pfx"
the former code expanded like
$FileType = Get-Item -Path "C:/my/cert.pfx";
if ("cert.pfx" -eq '.pfx') { ... not reached ... }
and thus did not load the certificate file.
Now use GetExtension instead of Get-Item to make the .pfx check work.
|
||
|---|---|---|
| .. | ||
| apis | ||
| config | ||
| core | ||
| daemon | ||
| daemons/ServiceCheckDaemon | ||
| help/help | ||
| icinga | ||
| mssql | ||
| web | ||
| webserver | ||
| wmi | ||