Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Change from MD5 to SHA256 digests
Browse files Browse the repository at this point in the history
Newer versions of Puppet does not support MD5.
# puppet cert sign dashboard
Error: unknown message digest algorithm
  • Loading branch information
anordby committed Aug 10, 2015
1 parent 56ad503 commit 9bd51b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/install.rake
Expand Up @@ -44,7 +44,7 @@ namespace :cert do
cert_req.version = 0
cert_req.subject = OpenSSL::X509::Name.new([["CN", SETTINGS.cn_name]])
cert_req.public_key = key.public_key
cert_req.sign(key, OpenSSL::Digest::MD5.new)
cert_req.sign(key, OpenSSL::Digest::SHA256.new)

begin
PuppetHttps.put("https://#{SETTINGS.ca_server}:#{SETTINGS.ca_port}/production/certificate_request/#{CGI::escape(SETTINGS.cn_name)}",
Expand Down

0 comments on commit 9bd51b2

Please sign in to comment.