Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using libssl.so.1.1 with LuaSec 0.4.1 #152

Open
plmanik opened this issue Jan 13, 2020 · 1 comment
Open

using libssl.so.1.1 with LuaSec 0.4.1 #152

plmanik opened this issue Jan 13, 2020 · 1 comment

Comments

@plmanik
Copy link

plmanik commented Jan 13, 2020

Hi,
I'm using LuaSec 0.4.1 and getting below error in require function

luajit: error loading module 'ssl.core' from file '/usr/lib/arm-linux-gnueabi/lua/5.1/ssl/core.so':
libssl.so.1.0.0: cannot open shared object file: No such file or directory
stack traceback:
[C]: at 0x0053e4f4
[C]: in function 'require'
/tmp/test.lua:3: in main chunk
[C]: at 0x004e6090

I have libssl.so.1.1 only available in /usr/lib/arm-linux-gnueabi/ and how to use libssl.so.1.1 to work with Luasec 0.4 version. Kernel version is 5 .

Code sample

module("ssl", package.seeall)

require("ssl.core")
require("ssl.context")


_VERSION   = "0.4.1"
_COPYRIGHT = "LuaSec 0.4.1 - Copyright (C) 2006-2011 Bruno Silvestre\n" .. 
             "LuaSocket 2.0.2 - Copyright (C) 2004-2007 Diego Nehab"

Thanks,
Mani

@brunoos
Copy link
Member

brunoos commented Jan 20, 2020

My guess: luasec was built using openssl 1.0.0 and your system has 1.1.0.
You need to rebuild luasec with your correct library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants