Also, the bit about self-signed certificates being insecure? Arguably they are the most secure if you pin to them since you are trusting no third parties. Obviously if you keep them untrusted and ignore the validation error every time it's a different story.