Re: [openssl-users] openssl asn1parse -length

2018-07-24 Thread Christian Böhme
On 24.07.2018 11:41, Jakob Bohm wrote: > Best option is to download the documents that specify the DER > (or BER) ASN.1 Encoding, which is the X.690 (2015) ITU-T > "recommendation" which was a freely downloadable PDF last time > I checked. […] > For example, the one you show below is thus: > 0x3

Re: [openssl-users] openssl asn1parse -length

2018-07-24 Thread Jakob Bohm
On 23/07/2018 16:56, Christian Böhme wrote: Hello all, I have been trying to find a way to ascertain that the contents of a file is a DER-encoded ASN.1 structure such as $ openssl version OpenSSL 1.0.2g 1 Mar 2016 $ openssl asn1parse -in ciphertext.der -inform DER -offset 0 -i 0:d=0 hl=

[openssl-users] openssl asn1parse -length

2018-07-23 Thread Christian Böhme
Hello all, I have been trying to find a way to ascertain that the contents of a file is a DER-encoded ASN.1 structure such as $ openssl version OpenSSL 1.0.2g 1 Mar 2016 $ openssl asn1parse -in ciphertext.der -inform DER -offset 0 -i 0:d=0 hl=4 l= 978 cons: SEQUENCE 4:d=1 hl