Skip to content

Commit acf615a

Browse files
committed
api: use ordinary tls with ca_file parameter
By default server checked server and client certificates which should do with mTLS configuration. Since it is not expected behaviour, after the patch `ca_file` configuration won't ask for client certificates authorization Closes #217
1 parent 91a14b8 commit acf615a

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1414

1515
- Do not recreate server if it's address and port were not changed (#219).
1616
- Server doesn't change after updating parameters on config reload (#216).
17+
- Mutual TLS with `ca_file` option enabled (#217).
1718

1819
## [1.8.0] - 2025-07-07
1920

http/server.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ local function create_ssl_ctx(host, port, opts)
13281328
)
13291329
end
13301330

1331-
sslsocket.ctx_set_verify(ctx, 0x01 + 0x02)
1331+
sslsocket.ctx_set_verify(ctx, 0x00)
13321332
end
13331333

13341334
if opts.ssl_ciphers ~= nil then

test/integration/http_tls_enabled_test.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ local client_test_cases = {
9696
ssl_cert_file = fio.pathjoin(ssl_data_dir, 'server.crt'),
9797
ssl_ca_file = fio.pathjoin(ssl_data_dir, 'ca.crt'),
9898
},
99-
request_opts = {
100-
ssl_cert = fio.pathjoin(ssl_data_dir, 'client.crt'),
101-
ssl_key = fio.pathjoin(ssl_data_dir, 'client.key'),
102-
},
10399
},
104100
test_client_password_key_missing = {
105101
ssl_opts = {

0 commit comments

Comments
 (0)