From 304b82f0244e74f67cea6d3036b905858ca35a0e Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Tue, 30 Aug 2011 17:14:39 +0200 Subject: [PATCH] feature #754: Revert CA check c1338c737a99af573ce8ab3eb41ec9f72ed1ee --- src/authm_mad/remotes/x509/x509_auth.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/authm_mad/remotes/x509/x509_auth.rb b/src/authm_mad/remotes/x509/x509_auth.rb index 48fe58193f..dfd76a5ae6 100644 --- a/src/authm_mad/remotes/x509/x509_auth.rb +++ b/src/authm_mad/remotes/x509/x509_auth.rb @@ -171,7 +171,7 @@ private # Validate the proxy certifcates signee = @cert_chain[0] - @cert_chain[1..-1].each do |cert| + @cert_chain[1..-1].each do |cert| if !((signee.issuer.to_s == cert.subject.to_s) && (signee.verify(cert.public_key))) raise failed + signee.subject.to_s + " with issuer " + @@ -183,7 +183,7 @@ private # Validate the End Entity certificate if !@options[:ca_dir] - return + raise failed + "No certifcate authority directory was specified." end begin