Adding the cert parameter didnt work (dont think I have a correctly formatted pem file).
Have added the verify parameter instead as for development purposes it is probably more relevant.