Closed wwtorrey closed 3 months ago
This is an excellent modification. I have solved this in two ways..the master module now contains an 'Import-HPESANCertificate' command which will import the certificate for you, or via your fix the embedded ResolveIPToHost is also now working.
Thank you for your contribution
In the function ResolvePtoHost the CN location is assumed to be in a fixed location in the certificate subject. Suggest change to locate CN in subject and grab value.
$global:certhostname = ($CertSubject.Split(',').trim() | Where-Object {$ -like 'CN=*'}).SubString(3)
File: MSA.scripts\helpers.ps1:629