changed order of trustStore parameters, for easy readability