My quick solution to ensure self-signed certificates were valid