Revised X.509 construction from a byte array so that it does not use an internal implementation class.