def read(fd):

    output = six.binary_type()
    while True:
        line = readline(fd)
        if line:
            output = output + line
        else:
            return output.decode()
Gets the naive datetime of the certificates 'not_before' field.
dataset/ETHPy150Open d11wtq/dockerpty/tests/util.py/read--crossover with--dataset/ETHPy150Open Netflix/security_monkey/security_monkey/watchers/iam/iam_ssl.py/cert_get_not_before