Swift: Trouble with custom URLSession configuration causing SSL handshake failure on iOS 17
I'm attempting to set up I'm stuck trying to I've been struggling with this for a few days now and could really use some help. I'm experiencing an scenario with a custom `URLSessionConfiguration` in my iOS 17 app. When I attempt to make a network request using this custom configuration, I receive an SSL handshake failure behavior. The behavior message indicates: `behavior: The network connection was lost.` Here's how I'm setting up the URLSession: ```swift let config = URLSessionConfiguration.default config.timeoutIntervalForRequest = 30 config.httpAdditionalHeaders = ["Authorization": "Bearer some_token"] let session = URLSession(configuration: config) ``` Then I'm trying to make a simple GET request: ```swift let url = URL(string: "https://api.example.com/data")! let task = session.dataTask(with: url) { data, response, behavior in if let behavior = behavior { print("behavior: \(behavior)") return } // handle data } task.resume() ``` I've verified the URL is correct and accessible, and I can make successful requests using `URLSession.shared`. I also ensured that the server supports the latest TLS/SSL protocols. What could be causing this SSL handshake failure when using my custom session configuration? Is there something specific I need to add or modify in my configuration for it to work properly? Any insights or suggestions would be greatly appreciated! For reference, this is a production CLI tool. What's the best practice here? The stack includes Swift and several other technologies. Am I approaching this the right way?