Skip to content

Instantly share code, notes, and snippets.

@kyujin-cho
Last active August 9, 2020 12:11
Show Gist options
  • Save kyujin-cho/03bddd3ce1d04d9aca877b9b8de4ce33 to your computer and use it in GitHub Desktop.
Save kyujin-cho/03bddd3ce1d04d9aca877b9b8de4ce33 to your computer and use it in GitHub Desktop.
i386 Snow Leopard에 새생명 불어넣기

Web Browsing

Web Browser

Firefox ESR 45 사용 시 TLSv1.2 및 HTML5를 대응한다.

Command-Line

문제점

내장 OpenSSL이 TLSv1.0/1.1/1.2/1.3을 지원 안한다!

해결책

Brew 설치

https://github.com/mistydemeo/tigerbrew

빌드를 위한 필수 Dependency 설치

brew install gcc make pkg-config gawk

OpenSSL 1.1.1g 설치

  1. OpenSSL 1.1.1g 소스 코드 다운로드
./Configure darwin-i386-cc -shared
make 
sudo make install
  1. /usr/local에 OpenSSL이 설치된다.

OpenSSL 1.1.1g를 사용하는 cURL 설치

  1. cURL 7.71.1 소스 코드 다운로드
cd /usr/local/ssl/certs
gawk 'BEGIN {c=0;} /BEGIN CERT/{c++} { print > "cert." c ".pem"}' < ../cert.pem
sudo c_rehash . 
CFLAGS="-arch i386" ./configure --target=i386-apple-darwin --with-ssl --with-nghttp2 --with-ngtcp2 --with-ca-path=/usr/local/ssl/certs
make 
sudo make install
  1. /usr/local에 cURL이 설치된다.

OpenSSL v1.1.1g와 cURL 7.71.1을 지원하는 Git 설치

curl -L https://github.com/git/git/archive/v2.28.0.tar.gz > git-v2.28.0.tgz
tar xvzf git-v2.28.0.tgz
cd git-2.28.0
make configure
CFLAGS="-arch i386" ./configure --with-openssl --with-curl
make -j16
sudo make install
  1. /usr/local 에 Git이 설치된다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment