When was TLS 1.2 support added to OpenSSL?

On the official changelog page you provided, under Changes between 1.0.0h and 1.0.1 [14 Mar 2012] you can see Initial TLS v1.2 support. *) Add TLS v1.2 server support for client authentication. [Steve Henson] *) Add TLS v1.2 client side support for client authentication. Keep cache of handshake records longer as we don’t know the … Read more

Building Python 3.7.1 – SSL module failed

I solved it after 3 days only because of this blog. with python 3.7.4 openssl 1.1.0 centOS 6. here is the summary : First, some prerequisites: sudo apt-get install build-essential checkinstall libreadline-gplv2-dev libncursesw5-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev use yum instead of apt-get if using centos linux. Install ssl 1.0.2 or higher. cd /usr/src curl … Read more

OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server hello A

This is a problem at the server site. It looks like the server is exclusively accepting TLS 1.2 and does not show the usual behavior when the client requests something lesser (like downgrading or sending SSL alert) but instead just closes the connection. TLS 1.2 is not supported by OpenSSL 0.9.8 and additionally your code … Read more

How to do encryption using AES in Openssl

Check out this link it has a example code to encrypt/decrypt data using AES256CBC using EVP API. https://github.com/saju/misc/blob/master/misc/openssl_aes.c Also you can check the use of AES256 CBC in a detailed open source project developed by me at https://github.com/llubu/mpro The code is detailed enough with comments and if you still need much explanation about the API … Read more

How do I get Visual Studio Code to trust our self-signed proxy certificate?

This is a terrible answer (not very secure), but appears to be the current Microsoft official answer. Use “http.proxyStrictSSL”: false in your settings.json file. This should work to get around the issue of installing extensions inside a corporate network, but I’d recommend disabling the setting if you are going to be working from home/coffee shop … Read more

Digital signature for a file using openssl

To Generate Private Key openssl genrsa -out privatekey.pem 2048 To Sign openssl dgst -sha256 -sign privatekey.pem -out data.txt.signature data.txt To Generate The Public Key dgst -verify requires the public key openssl rsa -in privatekey.pem -outform PEM -pubout -out publickey.pem To Verify openssl dgst -sha256 -verify publickey.pem -signature data.txt.signature data.txt In case of success: prints “Verified … Read more

Creating a .p12 file

The openssl documentation says that file supplied as the -in argument must be in PEM format. Turns out that, contrary to the CA’s manual, the certificate returned by the CA which I stored in myCert.cer is not PEM format rather it is PKCS7. In order to create my .p12, I had to first convert the … Read more

“ERROR:root:code for hash md5 was not found” when using any hg mercurial commands

Running brew reinstall python@2 didn’t work for my existing Python 2.7 virtual environments. Inside them there were still ERROR:root:code for hash sha1 was not found errors. I encountered this problem after I ran brew upgrade openssl. And here’s the fix: $ ls /usr/local/Cellar/openssl …which shows 1.0.2t According to the existing version, run: $ brew switch … Read more