openssl version information in ruby OPENSSL_VERSION

$ 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

openssl version information in ruby OPENSSL_VERSION
Acquisition of article information in ruby ​​scraping
Directory information of DEFAULT_CERT_FILE in Mac ruby 2.0.0
Class in Ruby
Heavy in Ruby! ??
The ruby version is managed in the .rbenv / version file
About eval in Ruby
Output triangle in Ruby
Correspondence when Ruby version does not switch in rbenv
Variable type in ruby
Fast popcount in Ruby
Get information in an instance and calculate numbers Standard version
What I did in the version upgrade from Ruby 2.5.2 to 2.7.1
ABC177 --solving E in Ruby
Validate JWT token in Ruby
Ruby version switching with rbenv
Get EXIF information in Java
Read design patterns in Ruby
Write class inheritance in Ruby
Ruby version does not switch
Update Ruby in Unicorn environment
Integer unified into Integer in Ruby 2.4
[Ruby] Exception handling in functions
Use ruby variables in javascript.
Multiplication in a Ruby array
About regular expressions in Ruby
Birthday attack calculation in Ruby
Judgment of fractions in Ruby
Find Roman numerals in Ruby
Try using gRPC in Ruby
[Ruby] Find numbers in arrays
NCk mod p in Ruby
Chinese Remainder Theorem in Ruby
Simplified version of number calculation by collecting information in an instance