$ 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>
Ou $ ruby -ropenssl -e "p OpenSSL::OPENSSL_VERSION" "OpenSSL 1.1.1g 21 Apr 2020"
Informations de répertoire de DEFAULT_CERT_FILE sous 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>
Ou
$ ruby -ropenssl -e "p OpenSSL::X509::DEFAULT_CERT_FILE" "/usr/local/stow/openssl-111g/ssl/cert.pem"
référence Pourquoi Ruby's OpenSSL :: OPENSSL_VERSION est-il constant? / Mémo Masterca ChangeLog https://masutaka.net/chalow/2014-04-08-1.html
Recommended Posts