mirror of
https://github.com/apple/swift-nio-ssl
synced 2026-11-26 04:57:52 +00:00
Motivation: While TLS renegotiation is in general a bad idea, it is widely used for delayed TLS-based client authentication. We are able to support this use-case, and so we should enable it. As with BoringSSL, we'd like to continue to default to not supporting this mode of operation. However, users are free to enable support if they so choose. Modifications: - Added flags for configuring renegotiation. - Added integration test harness. - Added renegotiation integration test with s_server. - Added renegotiation and client cert support to sample client. Result: Users will be able to perform TLS renegotiation.
NIOHTTP1Client
This sample application provides a http client. Invoke it using one of the following syntaxes.
swift run NIOHTTP1Client # Gets a content on a server on ::1, port 4433, using SSL/TLS
swift run NIOHTTP1Client "https://example.com" # Gets a content on a server on example.com, port 443, using SSL/TLS
swift run NIOHTTP1Client "https://example.com:4433" # Gets a content on a server on example.com, port 4433, using SSL/TLS