title: Secure connection to server from PhoneGap without buing SSL certificate
body: <p>I want to make a secure connection for obtaining data from a data (requiring a login) in a PhoneGap application. Is there some way to do this without buying an ssl certificate?</p>
  
  <p>Could I use a self signed certificate and add the certificate (or its fingerprint) to the PhoneGap application, so that it can always check that the certificate is correct and no man in the middle attack takes place?</p>