Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve upcoming OpenSSL Ruby library deprecation of algorithm constants #1860

Merged
merged 1 commit into from
Jun 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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