uWSGI can not load libssl.1.0.0.dylib

MacPorts usually install softwares into /opt/local/, but brew will install softwares into /usr/local/. It seems that my uwsgi is looking for the libssl.1.0.0.dylib in /usr/local/lib, so I use brew to install openssl and relink it: brew install –upgrade openssl brew unlink openssl && brew link openssl –force

Encryption/decryption doesn’t work well between two different openssl versions

The default digest was changed from MD5 to SHA256 in Openssl 1.1 Try using -md md5 cgs@ubuntu:~$ echo “it-works!” > file.txt cgs@ubuntu:~$ LD_LIBRARY_PATH=~/openssl-1.1.0/ openssl-1.1.0/apps/openssl aes-256-cbc -a -salt -in ~/file.txt -out ~/file.txt.enc -md md5 enter aes-256-cbc encryption password: Verifying – enter aes-256-cbc encryption password: cgs@ubuntu:~$ LD_LIBRARY_PATH=~/openssl-1.0.1f/ openssl-1.0.1f/apps/openssl aes-256-cbc -a -in ~/file.txt.enc -d enter aes-256-cbc decryption password: … Read more