'Create an X509Name object for the subject of the certificate request
:return: An X509Name object'

def get_subject(self):

    name = X509Name.__new__(X509Name)
    name._name = _lib.X509_REQ_get_subject_name(self._req)
    if (name._name == _ffi.NULL):
        _raise_current_error()
    name._owner = self
    return name
