Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. > brew install openssl
  2. ==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2h_1.el_capitan.bottle.tar.gz
  3. Already downloaded: /Users/administrator/Library/Caches/Homebrew/openssl-1.0.2h_1.el_capitan.bottle.tar.gz
  4. ==> Pouring openssl-1.0.2h_1.el_capitan.bottle.tar.gz
  5. ==> Caveats
  6. A CA file has been bootstrapped using certificates from the system
  7. keychain. To add additional certificates, place .pem files in
  8. /usr/local/etc/openssl/certs
  9.  
  10. and run
  11. /usr/local/opt/openssl/bin/c_rehash
  12.  
  13. This formula is keg-only, which means it was not symlinked into /usr/local.
  14.  
  15. Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries
  16.  
  17. Generally there are no consequences of this for you. If you build your
  18. own software and it requires this formula, you'll need to add to your
  19. build variables:
  20.  
  21. LDFLAGS: -L/usr/local/opt/openssl/lib
  22. CPPFLAGS: -I/usr/local/opt/openssl/include
  23.  
  24. > brew link --force openssl
  25. Warning: Refusing to link: openssl
  26. Linking keg-only OpenSSL means you may end up linking against the insecure,
  27. deprecated system version while using the headers from the Homebrew version.
  28. Instead, pass the full include/library paths to your compiler e.g.:
  29. -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
  30.  
  31. brew update
  32. brew install openssl
  33. ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
  34. ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
  35.  
  36. 13:22 $ ls -l /usr/local/opt/openssl
  37. lrwxr-xr-x 1 ben admin 26 May 15 14:22 /usr/local/opt/openssl -> ../Cellar/openssl/1.0.2h_1
  38.  
  39. brew update
  40. brew install openssl
  41. ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
  42. ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
  43. ln -s /usr/local/Cellar/openssl/1.0.2j/bin/openssl /usr/local/bin/openssl
  44.  
  45. cd /usr/local/src
  46.  
  47. curl --remote-name https://www.openssl.org/source/openssl-1.0.2h.tar.gz
  48.  
  49. tar -xzvf openssl-1.0.2h.tar.gz
  50. cd openssl-1.0.2h
  51.  
  52. ./configure darwin64-x86_64-cc --prefix=/usr/local/openssl-1.0.2h shared
  53. make depend
  54. make
  55. make install
  56.  
  57. ln -s /usr/local/openssl-1.0.2h/bin/openssl /usr/local/bin/openssl
  58.  
  59. openssl version -a
  60.  
  61. LDFLAGS=-L/usr/local/opt/openssl/lib
  62. CPPFLAGS=-I/usr/local/opt/openssl/include
  63. PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
  64. pip install mitmproxy
  65.  
  66. touch ~/.bash_profile; open ~/.bash_profile
  67.  
  68. export PATH="$PATH:/usr/local/Cellar/openssl/1.0.2j/bin/openssl"
  69.  
  70. Jorns-iMac:~ jorn$ openssl version -a
  71. OpenSSL 1.0.2j 26 Sep 2016
  72. built on: reproducible build, date unspecified
  73. //blah blah
  74. OPENSSLDIR: "/usr/local/etc/openssl"
  75.  
  76. Jorns-iMac:~ jorn$ which openssl
  77. /usr/local/opt/openssl/bin/openssl
  78.  
  79. brew install openssl
  80. cd /usr/local/include
  81. ln -s ../opt/openssl/include/openssl .
  82.  
  83. brew install openssl
  84. cd /usr/local/include
  85. ln -s ../opt/openssl/include/openssl
  86. ./configure && make
  87.  
  88. brew install openssl
  89.  
  90. brew info openssl
  91. echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
  92.  
  93. brew reinstall ruby
  94. brew reinstall openssl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement