Simplified the certname generation