Skip to content

Instantly share code, notes, and snippets.

View Tyrese1's full-sized avatar

Tarhe Tyrese1

View GitHub Profile
@Tyrese1
Tyrese1 / sitebackup.sh
Last active December 21, 2020 19:37
backupscript
#!/bin/bash
dateToday=`date +"%Y-%m-%d"`
printf "* Starting Site Backup...\n"
#Read in Site Name from user and loop if no name is entered.
read -p "* Enter Site Name exactly as it appears in MPCP: " name
while [[ $name == '' ]]
do
printf "\n* Site Name cannot be empty.\n"
@Tyrese1
Tyrese1 / README.md
Last active August 29, 2015 14:24 — forked from fnichol/README.md

Why?

There is a long standing issue in Ruby where the net/http library by default does not check the validity of an SSL certificate during a TLS handshake. Rather than deal with the underlying problem (a missing certificate authority, a self-signed certificate, etc.) one tends to see bad hacks everywhere. This can lead to problems down the road.

From what I can see the OpenSSL library that Rails Installer delivers has no certificate authorities defined. So, let's go fetch some from the curl website. And since this is for ruby, why don't we download and install the file with a ruby script?

Installation

The Ruby Way! (Fun)

SSL upgrades on rubygems.org and RubyInstaller versions

UPDATE 2014-12-21: RubyGems 1.8.30, 2.0.15 and 2.2.3 have been released. It requires manual installation, please see instructions below.


Hello,

If you reached this page, means you've hit this SSL error when trying to