title: ssl pinning in Swift AlamoFire
body: <p>Im a newb here but I have an app that is subject to MITM attacks.</p>
  
  <p>After I bit of research it sounds like I need to do SSL Pining, i.e keep a copy of my servers public key/certificate so the can determine if the response came from it.</p>
  
  <p>I have no idea how to do this, I am using AlamoFire in Swift to handle the networking.</p>