added writting file for pub key and pcr value