Try adding OPENSSL_DIR to luarocks for luasec