class Localhost::Issuer

def load(path = @root)

@returns [Boolean] True if the certificate and key were loaded successfully.
@parameter path [String] The path to load the certificate and key.

Load the certificate and key from the given path.
def load(path = @root)
	certificate_path = self.certificate_path
	key_path = self.key_path
	
	return false unless File.exist?(certificate_path) and File.exist?(key_path)
	
	certificate = OpenSSL::X509::Certificate.new(File.read(certificate_path))
	key = OpenSSL::PKey::RSA.new(File.read(key_path))
	
	@certificate = certificate
	@key = key
	
	return true
end