{"action":"created","issue":{"url":"https://api.github.com/repos/darkstalker/oauth_light/issues/1","labels_url":"https://api.github.com/repos/darkstalker/oauth_light/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/darkstalker/oauth_light/issues/1/comments","events_url":"https://api.github.com/repos/darkstalker/oauth_light/issues/1/events","html_url":"https://github.com/darkstalker/oauth_light/issues/1","id":118045346,"number":1,"title":"Getting openssl.rand not found","user":{"login":"ctadeu","id":4115580,"avatar_url":"https://avatars.githubusercontent.com/u/4115580?v=3","gravatar_id":"","url":"https://api.github.com/users/ctadeu","html_url":"https://github.com/ctadeu","followers_url":"https://api.github.com/users/ctadeu/followers","following_url":"https://api.github.com/users/ctadeu/following{/other_user}","gists_url":"https://api.github.com/users/ctadeu/gists{/gist_id}","starred_url":"https://api.github.com/users/ctadeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctadeu/subscriptions","organizations_url":"https://api.github.com/users/ctadeu/orgs","repos_url":"https://api.github.com/users/ctadeu/repos","events_url":"https://api.github.com/users/ctadeu/events{/privacy}","received_events_url":"https://api.github.com/users/ctadeu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T13:45:45Z","updated_at":"2015-11-20T20:13:59Z","closed_at":null,"body":"Can you help me on that?\r\nI installed oauth_light using the luarocks and I got this error when try to use\r\n\r\n```\r\n2015/11/20 14:42:38 [error] 89210#0: *27 lua entry thread aborted: runtime error: /usr/local/openresty/luajit/share/lua/5.1/oauth_light.lua:8: module 'openssl.rand' not found:\r\n        no field package.preload['openssl.rand']\r\n        no file '/usr/local/openresty/lualib/openssl/rand.lua'\r\n        no file '/usr/local/openresty/lualib/openssl/rand/init.lua'\r\n        no file './openssl/rand.lua'\r\n        no file '/usr/local/openresty/luajit/share/luajit-2.1.0-alpha/openssl/rand.lua'\r\n        no file '/usr/local/share/lua/5.1/openssl/rand.lua'\r\n        no file '/usr/local/share/lua/5.1/openssl/rand/init.lua'\r\n        no file '/usr/local/openresty/luajit/share/lua/5.1/openssl/rand.lua'\r\n        no file '/usr/local/openresty/luajit/share/lua/5.1/openssl/rand/init.lua'\r\n        no file '/usr/local/openresty/lualib/openssl/rand.so'\r\n        no file './openssl/rand.so'\r\n        no file '/usr/local/lib/lua/5.1/openssl/rand.so'\r\n        no file '/usr/local/openresty/luajit/lib/lua/5.1/openssl/rand.so'\r\n        no file '/usr/local/lib/lua/5.1/loadall.so'\r\n        no file '/usr/local/openresty/lualib/openssl.so'\r\n        no file './openssl.so'\r\n        no file '/usr/local/lib/lua/5.1/openssl.so'\r\n        no file '/usr/local/openresty/luajit/lib/lua/5.1/openssl.so'\r\n        no file '/usr/local/lib/lua/5.1/loadall.so'\r\n```\r\nthanks!"},"comment":{"url":"https://api.github.com/repos/darkstalker/oauth_light/issues/comments/158512864","html_url":"https://github.com/darkstalker/oauth_light/issues/1#issuecomment-158512864","issue_url":"https://api.github.com/repos/darkstalker/oauth_light/issues/1","id":158512864,"user":{"login":"darkstalker","id":356503,"avatar_url":"https://avatars.githubusercontent.com/u/356503?v=3","gravatar_id":"","url":"https://api.github.com/users/darkstalker","html_url":"https://github.com/darkstalker","followers_url":"https://api.github.com/users/darkstalker/followers","following_url":"https://api.github.com/users/darkstalker/following{/other_user}","gists_url":"https://api.github.com/users/darkstalker/gists{/gist_id}","starred_url":"https://api.github.com/users/darkstalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkstalker/subscriptions","organizations_url":"https://api.github.com/users/darkstalker/orgs","repos_url":"https://api.github.com/users/darkstalker/repos","events_url":"https://api.github.com/users/darkstalker/events{/privacy}","received_events_url":"https://api.github.com/users/darkstalker/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T20:13:59Z","updated_at":"2015-11-20T20:13:59Z","body":"This is supposed to be used with the [luaossl](https://luarocks.org/modules/daurnimator/luaossl) library. You may be missing that, it's incomplete or not on your `package.{c,}path`.\r\nAlso it seems that you're using it from openresty. I don't know if openresty supports loading external C libraries (like luaossl). Maybe it has it's own implementation of ssl as a builtin. I've never used it, so you should research about the openresty's Lua bindings for more details."}}