summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/ssl/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/ssl/base.rb b/lib/puppet/ssl/base.rb
index 6c74b7565..7452a513d 100644
--- a/lib/puppet/ssl/base.rb
+++ b/lib/puppet/ssl/base.rb
@@ -68,7 +68,7 @@ class Puppet::SSL::Base
raise ArgumentError, "#{md} is not a valid digest algorithm for fingerprinting certificate #{name}"
end
- OpenSSL::Digest.hexdigest(md, content.to_der).scan(/../).join(':').upcase
+ OpenSSL::Digest.const_get(md).hexdigest(content.to_der).scan(/../).join(':').upcase
end
private