From: Graham B. <gb...@po...> - 2000-07-31 15:10:02
|
On Mon, Jul 31, 2000 at 03:57:33PM +0100, Chris Ridd wrote: > Graham Barr <gb...@po...> wrote: > > > Well looking in the sources for Net::LDAP will show how to use it. > > > > But do you have the ASN.1 definition for the certificate, it also has > > to be implicitly encoded and with indefinate lengths. Although I > > ^definite? Um, yes > In other words, Convert::ASN1 will not decode a certificate encoded using > BER, though a cert encoded in DER will be OK. Right. but as I said I do have a fix for the indefinate lengths, I just have to verify it and release it. > > do have a fix for indefinate lengths for Convert::ASN1 > > > > Graham. > > I just had a quick go, and am having problems. Like ? > How does Convert::ASN1 handle ANY, Graham? I don't fancy decoding the > *entire* certificate so want to put in placeholders for the bits I don't > care about. > > eg > > Foo ::= SEQUENCE { > version [0] INTEGER, > serialNumber ANY, > subject ANY, > ... > } > > will that do what I expect and let me decode past the bits I don't care > about (serialNumber and subject in the above case)? It should do. serialNumber in the output has should be the encoded object it skipped over, complete with it's tag. Graham. |