'Set the public key of the certificate request
:param pkey: The public key to use
:return: None'

def set_pubkey(self, pkey):

    set_result = _lib.X509_REQ_set_pubkey(self._req, pkey._pkey)
    if (not set_result):
        _raise_current_error()
