lapo-luchini / asn1js

JavaScript generic ASN.1 parser
ISC License
582 stars 161 forks source link

Failed to decode X509 certificate request #69

Closed floratmin closed 1 year ago

floratmin commented 1 year ago

I have the following certificate request created with openssl:

MIIBAzCBtgIBADAnMQswCQYDVQQGEwJERTEYMBYGA1UEAwwPd3d3LmV4YW1wbGUu
Y29tMCowBQYDK2VwAyEAcllrcQXoRcjBidHaFC3uNnhZtOJPNPQs8H3nfHaA+fug
XDBaBgkqhkiG9w0BCQ4xTTBLMAsGA1UdDwQEAwIEMDATBgNVHSUEDDAKBggrBgEF
BQcDATAnBgNVHREEIDAegg93d3cuZXhhbXBsZS5jb22CC2V4YW1wbGUuY29tMAUG
AytlcANBAIfPNSY30eAFPGQ5D2mHju/zXlwiykw8rq7CngGzAL6WpvGPp/Qaz3yl
mNGRW6uAswvSaH1Zbeus3pSmnFwvqQ4=

I get the error TypeError: Cannot use 'in' operator to search for 'optional' in T when the box 'with definitions' is ticked.

lapo-luchini commented 1 year ago

Fixed, thanks for the report!