update pem file