- Changed filename to certname to better reflect the actual issue at hand. - Restored _cdomain variable to its original place for clarity.