mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -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.
|
||
|---|---|---|
| .. | ||
| Close-IcingaTCPConnection.psm1 | ||
| Close-IcingaTCPSocket.psm1 | ||
| Convert-Base64ToCredentials.psm1 | ||
| ConvertTo-IcingaX509Certificate.psm1 | ||
| Disable-IcingaUntrustedCertificateValidation.psm1 | ||
| Enable-IcingaUntrustedCertificateValidation.psm1 | ||
| Get-IcingaRESTHeaderValue.psm1 | ||
| Get-IcingaRESTPathElement.psm1 | ||
| Get-IcingaSSLCertForSocket.psm1 | ||
| Get-IcingaTCPClientRemoteEndpoint.psm1 | ||
| Icinga_HTTPResponse_Enums.psm1 | ||
| New-IcingaSSLStream.psm1 | ||
| New-IcingaTCPClient.psm1 | ||
| New-IcingaTCPClientRESTMessage.psm1 | ||
| New-IcingaTCPSocket.psm1 | ||
| Open-IcingaTCPClientConnection.psm1 | ||
| Read-IcingaRESTMessage.psm1 | ||
| Read-IcingaTCPStream.psm1 | ||
| Send-IcingaTCPClientMessage.psm1 | ||
| Send-IcingaWebAuthMessage.psm1 | ||
| Test-IcingaRESTCredentials.psm1 | ||