Re: ASN.1 encoding error

2021-02-25 Thread Peter Sylvester
Even with sound this would not be BER. i:-) Integers can have 9 or more leading zero bits in BERnot ISO/IEC 8825-1:2008 (E) ITU-T Rec. X.690 (11/2008) 7 8.3 Encoding of an integer value 8.3.1The encoding of an integer value shall be primitive. The contents octets shall consist of one or more

Re: ASN.1 encoding error

2021-02-25 Thread John Robson via openssl-users
That's plausible - although it would be odd that the other similar device hasn't done the same (i.e. BER vs DER). I think I'm going to get some new certs generated, preferably not on the device itself. At least there is a possible explanation of the difference in behaviour that I am seeing. Than

Re: ASN.1 encoding error

2021-02-25 Thread Benjamin Kaduk via openssl-users
That sounds like the certificate is encoded using ASN.1 BER rules, that openssl accepts, but the python library is insisting on DER encoding (per the spec). -Ben On Thu, Feb 25, 2021 at 05:19:32PM +, John Robson via openssl-users wrote: > Hi all, > > I'm encountering an error connecting to a

ASN.1 encoding error

2021-02-25 Thread John Robson via openssl-users
Hi all, I'm encountering an error connecting to a device which as far as I can see has a reasonable certificate... The error coming back (through twisted and python) is: > twisted.python.failure.Failure OpenSSL.SSL.Error: [('asn1 encoding > routines', 'c2i_ibuf', 'illegal padding'), ('asn1 encod