luaossl
luaossl copied to clipboard
Segfault in setEphemeralKey
Reported in https://github.com/daurnimator/lua-http/issues/153
local openssl_ctx = require "openssl.ssl.context"
local openssl_pkey = require "openssl.pkey"
local ctx = openssl_ctx.new("TLS", false)
ctx:setEphemeralKey(openssl_pkey.new{ type = "EC", curve = "prime256v1" })
Wait this is really weird... I re-compiled luaossl and the issue went away.
When I did have the issue, it was EVP_PKEY_base_id failing.