Project

General

Profile

« Previous | Next » 

Revision 1e8667e8

Added by Ivan Necas over 10 years ago

Strip textual info from public certs

Causes various troubles across the tools.

View differences:

lib/puppet/provider/key_bundle/katello_ssl_tool.rb
protected
def expected_content
[privkey, pubkey].map { |f| File.read(f) }.join("\n")
[privkey, pubkey].join("\n")
end
def pubkey
# strips the textual info from the certificate file
openssl('x509', '-in', pubkey_source_path)
end
def privkey
File.read(privkey_source_path)
end
def privkey_source_path
resource[:privkey] || cert_details[:privkey]
end
def pubkey
def pubkey_source_path
resource[:pubkey] || cert_details[:pubkey]
end
lib/puppet/provider/pubkey/katello_ssl_tool.rb
protected
def expected_content
# strips the textual info from the certificate file
openssl('x509', '-in', source_path)
end
def source_path
cert_details[:pubkey]
end

Also available in: Unified diff