Added commonName return for certificate