Skip to content

vcert x86 version fails to unmarshall .Revision #609

@madamorr

Description

@madamorr

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

  1. Enroll for a certificate using the x86 version of vcert
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions