Merge pull request #273 from hunner/fix_trustcert