Kitura / SwiftyRequest

SwiftyRequest is an HTTP networking library built for Swift.
Apache License 2.0
110 stars 19 forks source link

Certificate Pinning #19

Closed steamonimo closed 6 years ago

steamonimo commented 6 years ago

I need to verify my HTTPS requests via certificate pinning. Is there a way to verify the hash of the server certificate I am connecting to?

ShihabMehboob commented 6 years ago

This has now been created on the following branch: https://github.com/IBM-Swift/SwiftyRequest/tree/cert_pinning

PR

steamonimo commented 6 years ago

Thanks for this branch but I need a solution for macOS and Linux. My main problem is that the URLSessionDelegate in module Security is not available on Swift 4.0.3 for Linux. It seems that Swift for Linux is just one big construction site for years to come.

ianpartridge commented 6 years ago

Yes I'm afraid this functionality is not going to be available on Linux for the foreseeable future.