Skip to content

Instantly share code, notes, and snippets.

View tranductam2802's full-sized avatar
🔥
Fulltime Mobile Developer! Part-time Poker dealer

Trần Đức Tâm tranductam2802

🔥
Fulltime Mobile Developer! Part-time Poker dealer
View GitHub Profile
@tranductam2802
tranductam2802 / install-ruby-2_5_1-with_rbenv.sh
Last active August 23, 2018 08:04 — forked from turadg/install-ruby-2.0.0.sh
Install Ruby (default 2.2) with Readline and latest OpenSSL (環境管理ツールのrbenvを作成する)
#!/usr/bin/env sh
echo '# Update the newest brew tool'
brew update
echo '# Upgrade any that were already installed'
brew upgrade rbenv ruby-build readline openssl
echo "# Install what's missing"
brew install rbenv ruby-build readline openssl
@tranductam2802
tranductam2802 / OpenSSL Errors and Rails – Certificate Verify Failed.md
Created August 9, 2018 06:48
Are you getting an error “OpenSSL certificate verify failed” with Ruby? You may be seeing Ruby errors with OpenSSL because of outdated SSL certificate files. These problems are most common with Ruby 2.1 on Mac OS X.

OpenSSL Errors and Rails – Certificate Verify Failed

Errors overviews

The error message:

openssl::ssl::sslerror: ssl_connect returned=1 errno=0 state=sslv3 read server certificate b: certificate verify failed

or

could not load openssl. you must recompile ruby with openssl support or change the sources in your gemfile from 'https' to 'http'. instructions for compiling with openssl using rvm are available at rvm.io/packages/openssl.

(function () {
'use strict';
if (location.host !== 'daynhauhoc.com') {
const checkHost = confirm('Bookmarklet does not work on this page.\nDo you want to open DayNhauHoc?');
if (checkHost) top.location.href = 'https://daynhauhoc.com';
return;
}
if (!Discourse.User.current()) {