Module: OpenSSL::Win::Root::Crypt

Extended by:
Fiddle::Importer
Defined in:
lib/openssl/win/root.rb

Overview

Based on Puppet::Util::Windows::RootCerts

Defined Under Namespace

Classes: Ctx

Class Method Summary collapse

Class Method Details

.eachObject



34
35
36
37
38
39
40
# File 'lib/openssl/win/root.rb', line 34

def self.each
  store = CertOpenSystemStoreA 0, 'ROOT'
  ctx = nil
  yield Ctx.new(ctx).crt until (ctx = CertEnumCertificatesInStore store, ctx).null?
ensure
  CertCloseStore store, 0
end