Project

General

Profile

« Previous | Next » 

Revision 2c2acd78

Added by Ivan Necas over 10 years ago

Extract candlepin specific cert configs to candlepin module

View differences:

lib/puppet/provider/privkey/katello_ssl_tool.rb
protected
def expected_content
if resource[:unprotect]
tmp_file = "#{source_path}.tmp"
begin
openssl('rsa',
'-in', source_path,
'-out', tmp_file,
'-passin', "file:#{cert_details[:passphrase_file]}")
File.read(tmp_file)
ensure
File.delete(tmp_file) if File.exists?(tmp_file)
end
else
super
end
end
def source_path
cert_details[:privkey]
end

Also available in: Unified diff