Installing and Running on OS X 10.11 SSL Fails to Link Using Brew
See original GitHub issueSteps to reproduce
Following steps here: https://www.microsoft.com/net/core#macos
brew update
brew install openssl
brew link --force openssl
Expected behavior
System is configured
Actual behavior
$ brew link --force openssl
output:
Warning: Refusing to link: openssl
Linking keg-only OpenSSL means you may end up linking against the insecure,
deprecated system version while using the headers from the Homebrew version.
Instead, pass the full include/library paths to your compiler e.g.:
-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
If I try to use the CLI, I get crypto errors:
$ dotnet restore
output:
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Crypto' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CryptoInitializer' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'System.Security.Cryptography.Native': The specified module could not be found.
(Exception from HRESULT: 0x8007007E)
at Interop.CryptoInitializer.EnsureOpenSslInitialized()
at Interop.CryptoInitializer..cctor()
--- End of inner exception stack trace ---
at Interop.Crypto..cctor()
--- End of inner exception stack trace ---
at Interop.Crypto.GetRandomBytes(Byte* buf, Int32 num)
at System.IO.Path.GetCryptoRandomBytes(Byte* bytes, Int32 byteCount)
at System.IO.Path.GetRandomFileName()
at Microsoft.DotNet.InternalAbstractions.TemporaryDirectory..ctor()
at Microsoft.Extensions.EnvironmentAbstractions.DirectoryWrapper.CreateTemporaryDirectory()
at Microsoft.DotNet.Configurer.NuGetPackagesArchiver..ctor()
at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(INuGetCacheSentinel nugetCacheSentinel)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)
Abort trap: 6
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview2-003121)
Product Information:
Version: 1.0.0-preview2-003121
Commit SHA-1 hash: 1e9d529bc5
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.11
OS Platform: Darwin
RID: osx.10.11-x64
$ brew -v
output:
Homebrew 0.9.9 (git revision b999e; last commit 2016-07-29)
Homebrew/homebrew-core (git revision a69e; last commit 2016-07-29)
$ brew info openssl
output:
openssl: stable 1.0.2h (bottled) [keg-only]
SSL/TLS cryptography library
https://openssl.org/
/usr/local/Cellar/openssl/1.0.2h_1 (1,691 files, 12M)
Poured from bottle on 2016-07-29 at 18:47:22
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/openssl.rb
==> Dependencies
Build: makedepend ✘
==> Options
--universal
Build a universal binary
--without-test
Skip build-time tests (not recommended)
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl/certs
and run
/usr/local/opt/openssl/bin/c_rehash
This formula is keg-only, which means it was not symlinked into /usr/local.
Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include
Issue Analytics
- State:
- Created 7 years ago
- Reactions:60
- Comments:58 (10 by maintainers)
Top Results From Across the Web
Homebrew refusing to link OpenSSL
I migrated my mac, and it unlinked all my homebrew installs - including OpenSSL. This broke gem install , which is how I...
Read more >OpenSSL not getting linked with homebrew on El Capitan ...
I am trying to code in C on OS X (El Capitan) and need to use OpenSSL. OS ships with version 0.9.8zh 14...
Read more >You are linking against OpenSSL 0.9.8, which is no longer ...
Issue: Installing and Running on OS X 10.11 SSL Fails to Link Using Brew. opened by idavis on 2016-07-30. closed by TheRealPiotrP on...
Read more >How to Install Homebrew on Mac
The simplest way to install Homebrew is through ruby and curl, accomplished with a single command. This approach is the same for installing...
Read more >Installing MariaDB Server on Mac OS X with Homebrew
Run brew update . $ brew update Already up-to-date. 5. Verify MariaDB version in Homebrew repo. Run brew info mariadb ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@carlsoncoder did you set yourself as owner of the /usr/local folder?
sudo chown -R
whoami/usr/local
To recap, for workaround this issue you need to:
brew uninstall openssl
sudo chown -R
whoami/usr/local
brew install homebrew/versions/openssl101
brew link --force homebrew/versions/openssl101
I have the same problem about that.