I am trying to code in C on mac (el capitan) and need to use OPENSSL.
OS ships with version 0.9.8zh 14 Jan 2016.
I used homebrew to upgrade and install openssl (got version 1.0.2h) but am unable to link it correctly to use it. Am facing the same issue as mentioned in this question: Homebrew refusing to link OpenSSL
It seems answers to the above question are not valid anymore coz of some update in brew.
My path references /usr/local/bin
as the first one.
Ran this command: ln -s /usr/local/Cellar/openssl/1.0.2j/include/openssl /usr/local/include/openssl
(found this solution here: https://medium.com/@zlwaterfield/openssl-with-el-capitan-456bf68bf43a#.f9tkjeo7w among other places)
got no error output, so I assumed this worked. But..
which openssl
gives me this output: /usr/local/bin/openssl
openssl version
gives me this output: OpenSSL 0.9.8zh 14 Jan 2016
Any ideas on how to proceed?
@jww am not sure what you mean by "build your stuff". I am not a programmer and hence do not really fully understand vocabulary. Just trying to learn some stuff.
I ran
brew update
brew install openssl
brew link --force openssl
which gave me error saying
Warning: Refusing to link: openssl
.
I didnt write this for sake of brevity and instead I provided link to question which showed exactly the problem I was facing. Coz earlier I have been told I have not been brief enough in forming que.
Also, the command I am running on CLI which led me to this path was this (if that helps):
openssl dgst -sha256 -sign ec-priv.pem ex-message.txt >ex-signature.der
.
Gives me an error:
EVP_SignFinal:wrong public key type
.
Googling led me to understand its coz of an old openssl version which I need to update. Does this answer your question?