Sha256: ae5b444f52c1d6ebc489014bad55a4651251cbc4234e60ad3a2ad010605775e0

Contents?: true

Size: 724 Bytes

Versions: 12

Compression:

Stored size: 724 Bytes

Contents

# frozen_string_literal: true

require_relative '../../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

12 entries across 12 versions & 1 rubygems

Version Path
puppet-8.5.1 lib/puppet/ssl/openssl_loader.rb
puppet-8.5.1-x86-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-8.5.1-x64-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-8.5.1-universal-darwin lib/puppet/ssl/openssl_loader.rb
puppet-8.5.0 lib/puppet/ssl/openssl_loader.rb
puppet-8.5.0-x86-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-8.5.0-x64-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-8.5.0-universal-darwin lib/puppet/ssl/openssl_loader.rb
puppet-8.4.0 lib/puppet/ssl/openssl_loader.rb
puppet-8.4.0-x86-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-8.4.0-x64-mingw32 lib/puppet/ssl/openssl_loader.rb
puppet-8.4.0-universal-darwin lib/puppet/ssl/openssl_loader.rb