fix broken example (missing server mode)
parent
d105d81f5c
commit
8d62ce5f29
|
@ -20,7 +20,7 @@ Then, setup the SSL config
|
||||||
const verify_callback(preverify_ok, x509_ctx)::Cint = 1
|
const verify_callback(preverify_ok, x509_ctx)::Cint = 1
|
||||||
|
|
||||||
function init_ssl_context()
|
function init_ssl_context()
|
||||||
ctx = Gemenon.OpenSSL.SSLContext()
|
ctx = Gemenon.OpenSSL.SSLContext(mode = Gemenon.OpenSSL.ServerMode)
|
||||||
Gemenon.OpenSSL.ca_chain!(ctx, "./cert.crt", "./key.key")
|
Gemenon.OpenSSL.ca_chain!(ctx, "./cert.crt", "./key.key")
|
||||||
|
|
||||||
Gemenon.OpenSSL.set_options!(ctx, Gemenon.OpenSSL.SSL_OP_NO_SSLv3)
|
Gemenon.OpenSSL.set_options!(ctx, Gemenon.OpenSSL.SSL_OP_NO_SSLv3)
|
||||||
|
|
Loading…
Reference in New Issue