Skip to content

Commit

Permalink
clnrest: Fixes ssl_version deprecated warning
Browse files Browse the repository at this point in the history
Reference Issue #6931: Fixes `Warning: option `ssl_version` is deprecated and it is ignored. Use ssl_context instead.`

Changelog-None.
  • Loading branch information
ShahanaFarooqui authored and rustyrussell committed Jun 28, 2024
1 parent 9f59936 commit 39626b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/clnrest/clnrest.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ def set_application_options(plugin):
"loglevel": "warning",
"certfile": f"{CERTS_PATH}/client.pem",
"keyfile": f"{CERTS_PATH}/client-key.pem",
"ssl_version": ssl.PROTOCOL_TLSv1_2
"cafile": f"{CERTS_PATH}/ca.pem",
"ssl": ssl.SSLContext(protocol=ssl.PROTOCOL_TLS_SERVER),
}
return options

Expand Down

0 comments on commit 39626b9

Please sign in to comment.