removed deprecated call to asn1 encode