Generalise OCSP I/O functions to support dowloading of other ASN1