$ irb irb(main):001:0> require 'openssl' => true irb(main):002:0> puts OpenSSL::OPENSSL_VERSION OpenSSL 1.1.1g 21 Apr 2020 => nil irb(main):003:0>
Or $ ruby -ropenssl -e "p OpenSSL::OPENSSL_VERSION" "OpenSSL 1.1.1g 21 Apr 2020"
Directory information of DEFAULT_CERT_FILE in Mac ruby 2.0.0 --Qiita https://qiita.com/shiro_yone/items/311be28fa29da54d7f11
irb(main):002:0> require 'openssl' => true irb(main):003:0> p OpenSSL::X509::DEFAULT_CERT_FILE "/usr/local/stow/openssl-111g/ssl/cert.pem" => "/usr/local/stow/openssl-111g/ssl/cert.pem" irb(main):004:0>
Or
$ ruby -ropenssl -e "p OpenSSL::X509::DEFAULT_CERT_FILE" "/usr/local/stow/openssl-111g/ssl/cert.pem"
reference Why is Ruby's OpenSSL :: OPENSSL_VERSION a constant? / Masterca ChangeLog memo https://masutaka.net/chalow/2014-04-08-1.html
Recommended Posts