attest-tool: aik.json shouldn't be executable (#65)

This commit is contained in:
Eric Chiang 2019-08-05 17:39:25 -07:00 committed by Tom D
parent 26ea1966ce
commit 9020140437

View File

@ -65,7 +65,7 @@ func runCommand(tpm *attest.TPM) error {
if err != nil { if err != nil {
return err return err
} }
return ioutil.WriteFile(*keyPath, b, 0755) return ioutil.WriteFile(*keyPath, b, 0644)
case "quote": case "quote":
b, err := ioutil.ReadFile(*keyPath) b, err := ioutil.ReadFile(*keyPath)