Comments (4)
Hi @masaya-kato63 , the LUA_PATH on your setup is not matching the path make install writes to.
try with
make install LUA_LIB_DIR=/opt/nginx/lib/lua/
from lua-resty-openssl.
@fffonion
thank you for your reply.
When I tried it, I got the following situation.
# ls /opt/nginx/lib/lua/resty/
core core.lua lrucache lrucache.lua openssl openssl.lua
# ls -R /opt/nginx/lib/lua/resty/openssl
/opt/nginx/lib/lua/resty/openssl:
asn1.lua bn.lua ctx.lua digest.lua ecx.lua hmac.lua kdf.lua objects.lua pkcs12.lua provider.lua rsa.lua ssl.lua version.lua
auxiliary cipher.lua dh.lua ec.lua err.lua include mac.lua param.lua pkey.lua rand.lua ssl_ctx.lua stack.lua x509
/opt/nginx/lib/lua/resty/openssl/auxiliary:
bio.lua ctypes.lua ecdsa.lua jwk.lua nginx_c.lua nginx.lua
/opt/nginx/lib/lua/resty/openssl/include:
asn1.lua bn.lua crypto.lua ecdsa.lua err.lua evp.lua objects.lua param.lua pkcs12.lua rand.lua ssl.lua x509 x509_vfy.lua
bio.lua conf.lua dh.lua ec.lua evp hmac.lua ossl_typ.lua pem.lua provider.lua rsa.lua stack.lua x509v3.lua
/opt/nginx/lib/lua/resty/openssl/include/evp:
cipher.lua kdf.lua mac.lua md.lua pkey.lua
/opt/nginx/lib/lua/resty/openssl/include/x509:
altname.lua crl.lua csr.lua extension.lua init.lua name.lua revoked.lua
/opt/nginx/lib/lua/resty/openssl/x509:
altname.lua chain.lua crl.lua csr.lua extension extension.lua extensions.lua init.lua name.lua revoked.lua store.lua
/opt/nginx/lib/lua/resty/openssl/x509/extension:
dist_points.lua info_access.lua
HTTP request after restarting Nginx.
2023/12/27 02:12:26 [error] 15164#0: *4988 lua entry thread aborted: runtime error: /opt/cert/mtls.lua:1: module 'resty.openssl.x509' not found:
no field package.preload['resty.openssl.x509']
no file '/opt/nginx/lib/lua/resty/openssl/x509.lua'
no file './resty/openssl/x509.lua'
no file '/usr/local/share/luajit-2.1/resty/openssl/x509.lua'
no file '/usr/local/share/lua/5.1/resty/openssl/x509.lua'
no file '/usr/local/share/lua/5.1/resty/openssl/x509/init.lua'
no file './resty/openssl/x509.so'
no file '/usr/local/lib/lua/5.1/resty/openssl/x509.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './resty.so'
no file '/usr/local/lib/lua/5.1/resty.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
coroutine 0:
[C]: in function 'require'
/opt/cert/mtls.lua:1: in main chunk, client: 127.0.0.1, server: localhost, request: "PUT /put HTTP/1.1", host: "localhost"
from lua-resty-openssl.
lua_package_path "/opt/nginx/lib/lua/?.lua;/opt/nginx/lib/lua/?/init.lua;;";
will do.
from lua-resty-openssl.
@fffonion
Thanks to you I was able to solve the problem!
wget https://github.com/mpx/lua-cjson/archive/refs/tags/2.1.0.tar.gz
tar -zxvf 2.1.0.tar.gz
cd lua-cjson-2.1.0
make install PREFIX=/opt/nginx
lua_package_path "/opt/nginx/lib/lua/?.lua;/opt/nginx/lib/lua/?/init.lua;;";
lua_package_cpath "/opt/nginx/lib/lua/5.1/?.so;;";
from lua-resty-openssl.
Related Issues (20)
- about the return value of store:verify HOT 2
- It's better not bind `X509_STORE_set_flags` logic in `store:add(crl)` HOT 4
- sign CSR with exixsring root Keys. HOT 8
- Wrong parameter in dump_jwk used HOT 1
- Documentation for pkey:verify inconsistent HOT 1
- Read custom X509 extension HOT 12
- API change in OpenSSL 3.x
- Makefile doesn't installs all files HOT 1
- module 'resty.openssl.include.x509' not found HOT 2
- nginx using boringssl start failed HOT 8
- Regression since release 0.8.0 HOT 10
- Dependency to git for installation of version 0.8.2-1 HOT 2
- lua-resty-openssl not work for latest nginx-1.21.X version HOT 2
- Symbol not found: sk_pop_free HOT 4
- BoringSSL not working HOT 1
- Is lua-resty-openssl-aux-module still required to run lua-resty-openssl in production? HOT 3
- Crash when signature with invalid JWK is attempted HOT 4
- Hot to get fingerprint? HOT 5
- 尝试解密微信支付AEAD_AES_256_GCM的加密文本遇到错误:cipher:final: EVP_CipherFinal_ex failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lua-resty-openssl.