spacewander / lua-resty-rsa

RSA encrypt/decrypt & sign/verify for OpenResty/LuaJIT
MIT License
265 stars 101 forks source link

archlinux EVP_PKEY_size error #54

Open transtone opened 9 months ago

transtone commented 9 months ago
2024/01/05 11:02:43 [error] 5776#0: *1 lua entry thread aborted: runtime error: 
/opt/openresty/site/lualib/resty/rsa.lua:388: 
/opt/openresty/luajit/lib/libluajit-5.1.so.2: undefined symbol: EVP_PKEY_size
spacewander commented 6 months ago

What OpenSSL version used in your system? Seems it doesn't export the method EVP_PKEY_size.

Amitesh21 commented 6 months ago

Hey @spacewander, I am also seeing the same error. We were using the Openssl v1.1.1r with openresty v1.25.3.1 but seems like openssl 1.1.1 is deprecated now. I am trying to bump openssl to v3.2.1, are the new release changes not legacy compatible? Any sample or doc you can share to fix the issue? Thanks.

spacewander commented 6 months ago

According to https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_size.html, EVP_PKEY_size is renamed to EVP_PKEY_get_size. Would you give it a try?