We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Certs don't always use the fqdn as the CN. We need to rely on the actual cert name instead.
This is specially true when windows hostnames are in upper case and the cert name is lowercase.
var_cmd = "powershell @(get-childitem certificate::localmachine/my ^| where-object { $_.issuer -eq '#{issuer_subject}' -and $_.subject -eq 'CN=#{Facter['fqdn'].value}' -and $_.hasprivatekey} ^| sort-object -property notafter -descending)[0].thumbprint"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Certs don't always use the fqdn as the CN. We need to rely on the actual cert name instead.
This is specially true when windows hostnames are in upper case and the cert name is lowercase.
The text was updated successfully, but these errors were encountered: