Replace private key with a generated one to match in the packer template.