Open
Description
Get-DLAPCert script has the following:
$OpenSSLExeInfo = Get-Item $(Get-Command openssl).Source
$OpenSSLExeVersion = [version]$($OpenSSLExeInfo.VersionInfo.ProductVersion -split '-')[0]
Unfortunately, openssl version format can end in a letter, which results in an error: e.g. Version "1.1.1f" will fail.
I used the ProductVersionRaw property to return the correct/compatible value:
$OpenSSLExeVersion = [version]$($OpenSSLExeInfo.VersionInfo.ProductVersionRaw)
this will result in the correct version number being returned, and in the [version] format already:
$($OpenSSLExeInfo.VersionInfo.ProductVersionRaw)
Major Minor Build Revision
----- ----- ----- --------
1 1 1 6
P.S. Fantastic script btw. Was trying to figure out how to confirm what certificate was being used for LDAPS connections via PowerShell.
Metadata
Metadata
Assignees
Labels
No labels