don't ouptut enrolled json escaped to avoid possible parsing issues (ahem) in c

This commit is contained in:
dovholuknf
2020-01-31 09:37:24 -05:00
parent 06a8949670
commit 388cdd7d08
+4 -1
View File
@@ -134,7 +134,10 @@ func processEnrollment() error {
return fmt.Errorf("failed to open file '%s': %s", outpath, err.Error())
}
encErr := json.NewEncoder(output).Encode(&conf)
enc := json.NewEncoder(output)
enc.SetEscapeHTML(false)
encErr := enc.Encode(&conf)
if encErr == nil {
fmt.Printf("enrolled successfully. identity file written to: %s", outpath)
return nil