PHPASN1
PHPASN1 copied to clipboard
OIDs 2.40+ are not supported
I have looked at your implementation of Object Identifiers and found out that there is following problem:
The modulo-40 code is not correct, since it does not support the case of OID 2.40, 2.41, etc. Your modulo-40 code would encode 2.40 as 3.0.
You can find a implementation which implements 2.40+ OIDs correctly here. Testcases/checks of the DER encoding can be done here.
(Update: Ignore my initial comment about 128bit UUIDs)
Thanks for opening this issue. I'll try find some time to dig into this soon!