force https for api curl connection.  added pem file for peer verification