Found a bug in certificate lookup that was preventing a wildcard cert with friendlyname that contained astrix to not be found, changed -match to .Equals() method which when comparing exact strings works otherwise could have issue with wrong cert such that xyz.company.com and company.com would be a -match so it could get into a race condition of which is first in the list