title: Alamofire 5 with self-signed certificate
body: <p>I'd like to bypass certificate validation using <strong>Alamofire 5</strong> and Swift 4. I'm using Alamofire to connect to a server with a self-signed certificate. This is similar to this question <a href="https://stackoverflow.com/questions/32553414/alamofire-with-a-self-signed-certificate-servertrustpolicy">Alamofire with a self-signed certificate / ServerTrustPolicy</a>, but the answers are for previous Alamofire versions and it's not clear to me how to apply this approach to version 5. Does anyone know how to implement this in Alamofire 5?</p>