zenith391 / OCEmu

OpenComputers Emulator in Lua
53 stars 22 forks source link

HTTPS doesn't work using the Windows builds #31

Closed Ocawesome101 closed 2 years ago

Ocawesome101 commented 2 years ago

@kerbeeb on discord brought up this issue. I can reproduce it in my Windows VM by trying to retrieve any https URL.

Ocawesome101 commented 2 years ago

this seems to stem from ssl.https failing to load, with: Cannot use HTTPS: error loading module 'ssl.core' from file '.\extras\ssl.dll': cannot find given module

it appears that that error stems from ssl/https.lua -> requires ssl.lua -> requires ssl.core -> resolves to ssl.dll, from which ssl.core fails to load, even though luaopen_ssl_core is apparently present.

Ocawesome101 commented 2 years ago

further update: the OpenSSL (libssl-1_1-x64.dll) and libcrypto (libcrypto-1_1-x64.dll) files seem to be missing from the archive. putting these in the OCEmu root folder makes HTTPS work.

Ocawesome101 commented 2 years ago

this could also be due to mismatched OpenSSL/libcrypto versions.