lib/puppet/ssl/base.rb in puppet-2.7.26 vs lib/puppet/ssl/base.rb in puppet-3.0.0.rc4
- old
+ new
@@ -1,6 +1,6 @@
-require 'openssl/digest'
+require 'openssl'
require 'puppet/ssl'
# The base class for wrapping SSL instances.
class Puppet::SSL::Base
# For now, use the YAML separator.
@@ -61,10 +61,10 @@
def to_text
return "" unless content
content.to_text
end
- def fingerprint(md = :MD5)
+ def fingerprint(md = :SHA256)
# ruby 1.8.x openssl digest constants are string
# but in 1.9.x they are symbols
mds = md.to_s.upcase
if OpenSSL::Digest.constants.include?(mds)
md = mds