hello!
Thanks for this amazing library, it helped me a lot!
I am integrating with Apple Attest service, basically, one of the steps says this:
Obtain the value of the credCert extension with OID 1.2.840.113635.100.8.2, which is a DER-encoded ASN.1 sequence.
I think I got it doing this:
cred_cert |> Certificate.extensions() |> Extension.find({1, 2, 840, 113635, 100, 8, 2})
and that returns a tuple like this:
{:Extension, {1, 2, 840, 113635, 100, 8, 2}, false, <<48, ...>>}
According to them, I have to "Decode the sequence and extract the single octet string that it contains".
I have been testing a lot but I have no idea how to decode that to the string they mention, do you know if there is a way to achieve that using your library?
Thanks!
hello!
Thanks for this amazing library, it helped me a lot!
I am integrating with Apple Attest service, basically, one of the steps says this:
I think I got it doing this:
and that returns a tuple like this:
According to them, I have to
"Decode the sequence and extract the single octet string that it contains".I have been testing a lot but I have no idea how to decode that to the string they mention, do you know if there is a way to achieve that using your library?
Thanks!