mirror of
https://github.com/apple/swift-nio-ssl
synced 2026-11-25 04:47:52 +00:00
Motivation: It is only possible to load multiple certificates from a PEM file, sometimes it is useful to load multiple certificates from a buffer. Modifications: - Deprecate the `.file` source of loading a certificate, since it would only load the first certificate in a file. - Provide methods for loading multiple certificates from a PEM file or buffer. Result: Multiple certificates can be loaded from a PEM file/buffer.
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