Skip to content

Commit

Permalink
fix for issue #19
Browse files Browse the repository at this point in the history
  • Loading branch information
kkola committed Oct 24, 2019
1 parent ab4b116 commit 02108ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions controls/V-73611.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
domain_role = command('wmic computersystem get domainrole | Findstr /v DomainRole').stdout.strip

if domain_role == '4' || domain_role == '5'
describe command("Get-ChildItem -Path Cert:\\LocalMachine\\My | Findstr /v 'Thumbprint -- PSParentPath'") do
its('stdout') { should_not eq ' ' }
certs = command("Get-ChildItem -Path Cert:\\LocalMachine\\My | ConvertTo-JSON").stdout
describe "The domain controller's server certificate" do
subject { certs }
it { should_not cmp '' }
end
end

Expand Down

0 comments on commit 02108ba

Please sign in to comment.