Skip to content

Instantly share code, notes, and snippets.

@yakjuly
Created January 6, 2017 17:43
Show Gist options
  • Save yakjuly/1d56285246bc1256439a29cc3f2d3cfa to your computer and use it in GitHub Desktop.
Save yakjuly/1d56285246bc1256439a29cc3f2d3cfa to your computer and use it in GitHub Desktop.
Vulnerabilities
https://www.openssl.org/news/vulnerabilities.html
https
openssl s_client -connect www.feistyduck.com:443 -CAfile /etc/ssl/certs
ftps
openssl s_client -connect ftp.xxx.com:21 -starttls ftp
in ruby
require "openssl"
puts OpenSSL::OPENSSL_VERSION
puts "SSL_CERT_FILE: %s" % OpenSSL::X509::DEFAULT_CERT_FILE
puts "SSL_CERT_DIR: %s" % OpenSSL::X509::DEFAULT_CERT_DIR
Mac OS X rvm
--------------------
Show the status for all installed rubies:
rvm osx-ssl-certs status all
Update OpenSSL certificates for current ruby:
rvm osx-ssl-certs update
Update OpenSSL certificates for specific path:
`rvm osx-ssl-certs update /etc/openssl`
Schedule daily update of certificates:
`rvm osx-ssl-certs cron install`
---------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment