class Chef::Knife::Core::WindowsBootstrapContext
def trusted_certs_content
Returns a string for copying the trusted certificates on the workstation to the system being bootstrapped
def trusted_certs_content content = "" if chef_config[:trusted_certs_dir] Dir.glob(File.join(ChefConfig::PathHelper.escape_glob_dir(chef_config[:trusted_certs_dir]), "*.{crt,pem}")).each do |cert| content << "> #{bootstrap_directory}/trusted_certs/#{File.basename(cert)} (\n" + escape_and_echo(IO.read(File.expand_path(cert))) + "\n)\n" end end content end