def write(self, ostream):
        tstream = BytearrayStream()

        self.certificate_type.write(tstream)
        self.certificate_value.write(tstream)

        self.length = tstream.length()
        super(Certificate, self).write(ostream)
        ostream.write(tstream.buffer)
Write the data encoding the Certificate object to a stream.
dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/core/secrets.py/Certificate.write