Skip to content

Commit

Permalink
Merge pull request #1860 from chef/openssl
Browse files Browse the repository at this point in the history
Resolve upcoming OpenSSL Ruby library deprecation of algorithm constants
  • Loading branch information
robbkidd authored Jun 4, 2020
2 parents c21b775 + b021488 commit f2b780f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/supermarket/app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def public_key_signature
# with private key: openssl rsa -in private_key.pem -pubout -outform DER | openssl md5 -c
# with public key: openssl rsa -in public_key.pub -pubin -outform DER | openssl md5 -c
key_in_der_format = OpenSSL::PKey::RSA.new(public_key).to_der
OpenSSL::Digest::MD5.hexdigest(key_in_der_format).scan(/../).join(':')
OpenSSL::Digest.hexdigest('MD5', key_in_der_format).scan(/../).join(':')
end

private
Expand Down

0 comments on commit f2b780f

Please sign in to comment.