-
Notifications
You must be signed in to change notification settings - Fork 69
Description
PROBLEM SUMMARY
When using the x86 version of vcert 5.12.2 (possibly in older version as well.) vcert fails to unmarshall the .Revision number returned in the DNtoGuid for a retire request.
Error: Failed to retire certificate: failed to parse DNtoGUID results: json: cannot unmarshall number 63688097556741756 into Go struct field .Revision of type int.
I do believe that the problem is in the DNToGUIDResponse structure, where the Revision is defined as an int. I believe that the field should be an int64.
DNToGUIDResponse struct {
ClassName string json:"ClassName"
GUID string json:"GUID"
HierarchicalGUID string json:"HierarchicalGUID"
Result int json:"Result"
Revision int json:"Revision"
}
STEPS TO REPRODUCE
- Enroll for a certificate using the x86 version of vcert
- retire the certificate using the x86 version of vcert
EXPECTED RESULTS
Expected to retire the certificate.
ACTUAL RESULTS
Error in execution for failing to unmarshall number in to struct field .Revision.
ENVIRONMENT DETAILS
RHEL9 client machine. I have not tested the Windows x86 version, but i do believe that it will be the same problem.
COMMENTS/WORKAROUNDS
None