QPID-4849 The previous code was assuming that "CN" was the first entry in the name string. Changed the code to first find "CN" and then extract from there. testMultipleCertsInSingleStore verifies this change.