for ruby 2.2.10
dnf install compat-openssl10-devel --allowerasing
for ruby 2.6.6
$ openssl version
remove compat-openssl10*
dnf install openssl-devel
ruby -r digest/sha1 -e 'p Digest::SHA1'
for ruby 2.2.10
dnf install compat-openssl10-devel --allowerasing
for ruby 2.6.6
$ openssl version
remove compat-openssl10*
dnf install openssl-devel
ruby -r digest/sha1 -e 'p Digest::SHA1'