Sha256: 1756a0819885e7b8bdd7cdb099606752f8d1f7b27ad1a01c0d67dc899dc2bb58

Contents?: true

Size: 678 Bytes

Versions: 128

Compression:

Stored size: 678 Bytes

Contents

require 'puppet/util/platform'

# This file should be required instead of writing `require 'openssl'`
# or any library that loads openssl like `net/https`. This allows the
# core Puppet code to load correctly in JRuby environments that do not
# have a functioning openssl (eg a FIPS enabled one).

unless Puppet::Util::Platform.jruby_fips?
  require 'openssl'
  require 'net/https'
else
  # Even in JRuby we need to define the constants that are wrapped in
  # Indirections: Puppet::SSL::{Key, Certificate, CertificateRequest}
  module OpenSSL
    module PKey
      class RSA; end
    end

    module X509
      class Request; end
      class Certificate; end
    end
  end
end

Version data entries

128 entries across 128 versions & 1 rubygems

Version Path
puppet-6.29.0 lib/puppet/ssl/openssl_loader.rb
puppet-6.29.0-x86-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-6.29.0-x64-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-6.29.0-universal-darwin lib/puppet/ssl/openssl_loader.rb
puppet-6.28.0 lib/puppet/ssl/openssl_loader.rb
puppet-6.28.0-x86-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-6.28.0-x64-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-6.28.0-universal-darwin lib/puppet/ssl/openssl_loader.rb
puppet-6.27.0 lib/puppet/ssl/openssl_loader.rb
puppet-6.27.0-x86-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-6.27.0-x64-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-6.27.0-universal-darwin lib/puppet/ssl/openssl_loader.rb
puppet-6.26.0 lib/puppet/ssl/openssl_loader.rb
puppet-6.26.0-x86-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-6.26.0-x64-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-6.26.0-universal-darwin lib/puppet/ssl/openssl_loader.rb
puppet-6.25.1 lib/puppet/ssl/openssl_loader.rb
puppet-6.25.1-x86-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-6.25.1-x64-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-6.25.1-universal-darwin lib/puppet/ssl/openssl_loader.rb