Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Correctly decode certificates #8

Open
tehwalris opened this issue Mar 22, 2020 · 0 comments
Open

Correctly decode certificates #8

tehwalris opened this issue Mar 22, 2020 · 0 comments

Comments

@tehwalris
Copy link
Owner

FreeIPA sends certificates in a special way. In the schema they are either string or Certificate. In the response they are sent as {"__base64__": "thecertinbase64"}. The current implementation either crashes or returns an interface{}. It should not crash and should return string or byte[].

Yes, there is a reason. Certificates are actually modeled as maps with a `__base64__` subfield, so casting them as strings failed.

Originally posted by @raphink in #7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant