lib/busser/command/plugin_install.rb
# Drops SSL verify peer to VERIFY_NONE within a given block. While this
# is normally a massive anti-pattern and should be discouraged, there
# may be some Busser code that needs to be executed in an environment
# that lacks a proper SSL certificate store.
#
# Please use with extreme caution.
#
Drops SSL verify peer to VERIFY_NONE within a given block. While this
is normally a massive anti-pattern and should be discouraged, there
may be some Busser code that needs to be executed in an environment
that lacks a proper SSL certificate store.

Please use with extreme caution.
Drops SSL verify peer to VERIFY_NONE within a given block . While this is normally a massive anti - pattern and should be discouraged there may be some Busser code that needs to be executed in an environment that lacks a proper SSL certificate store . Please use with extreme caution .
def drop_ssl_verify_peer
        before = OpenSSL::SSL::VERIFY_PEER
        OpenSSL::SSL.send(:remove_const, 'VERIFY_PEER')
        OpenSSL::SSL.const_set('VERIFY_PEER', OpenSSL::SSL::VERIFY_NONE)
        yield
        OpenSSL::SSL.send(:remove_const, 'VERIFY_PEER')
        OpenSSL::SSL.const_set('VERIFY_PEER', before)
      end
def drop_ssl_verify_peer before = OpenSSL :: SSL :: VERIFY_PEER OpenSSL :: SSL . send ( :remove_const , 'VERIFY_PEER' ) OpenSSL :: SSL . const_set ( 'VERIFY_PEER' , OpenSSL :: SSL :: VERIFY_NONE ) yield OpenSSL :: SSL . send ( :remove_const , 'VERIFY_PEER' ) OpenSSL :: SSL . const_set ( 'VERIFY_PEER' , before ) end
Drops SSL verify peer to VERIFY_NONE within a given block.
Drops SSL verify peer to VERIFY_NONE within a given block .