fixed bug with adding more than 1 certificate to trust manager