We should move the code for generating the certificate name in a function that we are able to test. We should also check we test all permutations.