Ensure consistent ordering of certificates
Ensure consistent ordering of certificates

Using a HashSet meant that certificates were not guaranteed to be
returned in the order they were added. This caused inconsistent
behaviour in the unit tests.

apache/tomcat,apache/tomcat,apache/tomcat,apache/tomcat,apache/tomcat