Move temporary certificate file creation into spec helper